president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
i need one script the advance to level 45 and win 5cc.
Level: 45 wiin 5cc
Level: 100 wiin 10cc
Level: 150 wiin 35cc
Level: 200 wiin 50cc
Thx
my script (dont tested):
Level: 45 wiin 5cc
Level: 100 wiin 10cc
Level: 150 wiin 35cc
Level: 200 wiin 50cc
Thx
my script (dont tested):
LUA:
function onAdvance(cid, skill, oldLevel, newLevel)
local items = {
[45] = {
{2160, 5, 1777}
},
[100] = {
{2160, 10, 1238}
},
[150] = {
{2160, 35, 56534}
},
[200] = {
{2160, 50, 5431}
}
}
local v = items[newLevel]
return v and getPlayerStorageValue(cid, v[3]) == -1 and doPlayerAddItem(cid, v[1], v[2] or 1) and setPlayerStorageValue(cid, v[3], 1)
end