ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is my script
goldtoplat.lua:
Here it is in actions.xml
What do I need to add to make the lever turn when you use it and if you dont have 100 of the item, the lever does not turn.
goldtoplat.lua:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerItemCount(cid, 2148) >= 100 then
doPlayerRemoveItem(cid,2148,100)
doPlayerAddItem(cid,2152,1)
doSendMagicEffect(getPlayerPosition(cid), 13)
end
return true
end
Here it is in actions.xml
Code:
<action actionid="3333" script="goldtoplat.lua"/>
What do I need to add to make the lever turn when you use it and if you dont have 100 of the item, the lever does not turn.