gianflogao
Member
- Joined
- Jun 6, 2014
- Messages
- 134
- Solutions
- 2
- Reaction score
- 13
Hello guys,
I'm trying to create a system for my Yurots 7.6 server, and I need help from some experienced.
Since the server is XML, and does not have some current server roles, then I'll have to improvise.
Item name: vip scroll
Item Id: 2345
Storage: 5007
actions.xml
actions/scripts/vip.lua
as you can see he can only use 1x the item.
I wanted to get the message:
You added 30 days vip to your character.
after already having the "storage":
You already have VIP in your character.
I would like to see the door script with "storage" if someone helps me too ... Because I do not have.
I'm trying to create a system for my Yurots 7.6 server, and I need help from some experienced.
Since the server is XML, and does not have some current server roles, then I'll have to improvise.
Item name: vip scroll
Item Id: 2345
Storage: 5007
actions.xml
Lua:
<action itemid="2345" script="vip.lua" />
actions/scripts/vip.lua
Lua:
function onUse(cid, item)
if getPlayerStorageValue(cid, 5007) < 1 then
setPlayerStorageValue(cid, 5007, 1)
doRemoveItem(item.uid, 1)
end
return true
end
I wanted to get the message:
You added 30 days vip to your character.
after already having the "storage":
You already have VIP in your character.
I would like to see the door script with "storage" if someone helps me too ... Because I do not have.