• 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!

doPlayerAddExperience

tobias89

Pikaz Liek Pikaz
Joined
Apr 24, 2010
Messages
110
Reaction score
0
Does doPlayerAddExperience still work in 8.7?

Can't get it to work.. :ninja:!
 
Code:
if item.itemid == 2686 then
	doCreatureSay(cid,"100 EXP GRANTED!", TALKTYPE_ORANGE_1)
	doRemoveItem(item.uid, 1)
	doPlayerAddExperience(cid,100)
	return true
	end

ive done it.
but it wont give me exp, only my 100 exp granted shows up :D
 
Lua:
function onUse(cid, item, frompos, item2, topos)      
    if item.itemid == 2686 then
	doCreatureSay(cid,"100 EXP GRANTED!", TALKTYPE_ORANGE_1)
	doRemoveItem(item.uid, 1)
	doPlayerAddExp(cid,100)
	end
	return true
end
 
Back
Top