Zerak456
Gorlex.net NEW!
- Joined
- Aug 13, 2008
- Messages
- 1,060
- Reaction score
- 6
Hello this is my first script "you can buy from a chest full demon" please rep++ me if you like it.. [my first script]
here is it
action/action.xml
and now next...
action/scripts/set.lua
thank you please rep++ me if it works and if u like it
no bugs ^^
here is it
action/action.xml
Code:
<action uniqueid="1510" script="set.lua" />
and now next...
action/scripts/set.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1740 and doPlayerRemoveMoney(cid,500000) == 1 then
for i = 1,1 do
container = doPlayerAddItem(cid, 2000, 1)
doAddContainerItem(container, 2493, 100)
doAddContainerItem(container, 2494, 100)
doAddContainerItem(container, 2495, 100)
doAddContainerItem(container, 2520, 100)
end
doTransformItem(item.uid,item.itemid+0)
elseif item.itemid == 1740 and doPlayerRemoveMoney(cid,500000) == 1 then
for i = 1,20 do
doAddContainerItem(container, 2493, 100)
doAddContainerItem(container, 2494, 100)
doAddContainerItem(container, 2495, 100)
doAddContainerItem(container, 2520, 100)
end
else
doPlayerSendCancel(cid,"u dont got 50cc to buy demon set.")
end
return 1
end
thank you please rep++ me if it works and if u like it

Last edited: