• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Exp Eggs (Question)

godleon

Banned User
Joined
Apr 10, 2012
Messages
212
Reaction score
3
How can i make a Exp egg so when you use it you gain exp?

Like noobwar.eu? them sort of stages.

Thanks for help.


Help for rep++++++++++++++++++++++++++++++++++.
 
Code:
function onUse(cid, item)
     if ((item.itemid == [B]x[/B]) and (getPlayerStorageValue(cid, [B]s[/B]) < 1)) then
           return doPlayerAddExp(cid, [B]y[/B]) and setPlayerStorageValue(cid, [B]s[/B], 1)
     end
end
 
But where did u place the script?
Login is coded on creature events, this code I gave u must be placed at actions...

By the way, to fix this login bug, u must just put another "end" in the end of the script login.lua on creaturescripts
 
Back
Top