Uzzioo - 2008-12-15 09:12:43

Kharm prosiłes mnie o tego skrypta zebym ci zrobił to masz
Wejdz w data/actions/scripts i odszukaj crystal.lua
Gdy juz odszukasz otwórz za pomocą notatnika i usun cała zwartosc i wklej to

Kod:

function onUse(cid, item, frompos, item2, topos)
       if item.itemid == 2160 and item.type == 100 then
           doRemoveItem(item.uid,item.type)
           doPlayerAddItem(cid,2159,1)
           doPlayerSendTextMessage(cid,22,"You have changed 100 crystal coin to 1 scarab coin")
       elseif item.itemid == 2159 and item.type < 100 then
           doRemoveItem(item.uid,1)
           doPlayerAddItem(cid,2160,100)
           doPlayerSendTextMessage(cid,22,"You have changed 1 scarab coin to 100 crystal coins")
       end
   end

i NADPISZ jako crystal.lua
OK teraz jeszcze raz wchodzimy w data/action/scripts
i tworzymy dokument tekstowy i wpisz w nim

Kod:

function onUse(cid, item, frompos, item2, topos)
       if item.itemid == 2159 and item.type == 100 then
           doRemoveItem(item.uid,item.type)
           doPlayerAddItem(cid,2157,1)
           doPlayerSendTextMessage(cid,22,"You have changed 100 scarab coin to 1 gold nugget")
    elseif doRemoveItem(item.uid,1) then
          doPlayerSendTextMessage(cid,22,"You have changed 1 scarab coin to 100 crystal coins")
          doPlayerAddItem(cid,2160,100)
       end
end

i zapisz jako scarab.lua
i Potem znowy chodzimy w data/actions/scripts
i tworzymy dokument tekstowy a w nim

Kod:

function onUse(cid, item, frompos, item2, topos)
      if doRemoveItem(item.uid,1) then
          doPlayerSendTextMessage(cid,22,"You have changed 1 gold nugget to 100 scarab coins")
          doPlayerAddItem(cid,2159,100)
      end
  end

I zapisz to jako gold nugget.lua

No i na koniec wejdz do data/actions/actions.xml i dodaj 3 linijki

Kod:

<action itemid="2160" script="crystal.lua" />
<action itemid="2159" script="scarab.lua" />
<action itemid="2157" script="gold nugget.lua" />

Uwaga skrypt działa tak masz 100cc i klikasz prawym przyciskiem myszki i masz 1scarab coin, a gdy masz 100scarab coin to klikasz prawym przyciskiem myszki i masz 1 gold nugget

                                                               UWAGA
Usun ze Scarabów to ze lecą z nich scarab coiny

www.hogwartx.pun.pl www.bmx-all-what-i-want.pun.pl www.speedwaymenago2010.pun.pl www.umcraft.pun.pl www.cycling-manager.pun.pl