- Haxiorski OTS http://www.haxiorskiots.pun.pl/index.php - Skrypty http://www.haxiorskiots.pun.pl/viewforum.php?id=18 - 100cc-Scarab Coin 100scarab coin-1gold nugget http://www.haxiorskiots.pun.pl/viewtopic.php?id=33 |
Uzzioo - 2008-12-15 08:12:43 |
Kharm prosiłes mnie o tego skrypta zebym ci zrobił to masz 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 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 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 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 |