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

Lua Healing mana tiles

marcuz90

New Member
Joined
Apr 19, 2011
Messages
48
Reaction score
0
Hello, I'm trying to make healing mana tiles script, but I'm stuck at
getThingFromPos(). The problem is, getThingFromPos() is trying to get player and player isn't there.
So it returns with error.
How to fix this ??
 
Post here what you got.

What do you "getThingFromPos()" use for?

lol, you just need to doPlayerAddMana(cid,amount)
 
Last edited:
Nvm fixed !! if someone has same error, use player = getTopCreature(pos), check if player.itemid == 1 (1 for player), then doCreatureAddMana(player.uid, mana) -- not player but player.uid.
 
Back
Top