mofaza
Maskin
- Joined
- Jun 26, 2011
- Messages
- 73
- Reaction score
- 0
Hello.
I want VIP players to recieve more exp from killing monsters. I'm using the VIP-days system and I did some search and I found a script but it was for storage ID's.
So I tried to modify it for VIP-days but it didnt work. Help would be appriciated.
I've registred it in creaturescripts.xml and login.lua.
I want VIP players to recieve more exp from killing monsters. I'm using the VIP-days system and I did some search and I found a script but it was for storage ID's.
So I tried to modify it for VIP-days but it didnt work. Help would be appriciated.
Lua:
function onKill(cid, target)
return getPlayerVipDays(cid) >= 1 and doPlayerAddExperience(cid, getMonsterInfo(string.lower(getCreatureName(target))).experience * 0.3) or true
end
I've registred it in creaturescripts.xml and login.lua.