• 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 New bug.

Rachaw

Experienced Member
Joined
Oct 17, 2009
Messages
602
Reaction score
1
Location
Tha Sweden
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
                doCreatureSay(cid, "You've been awarded Donators experience by the scroll!", TALKTYPE_BLUE_1)
                doPlayerAddExp(cid, 40000000)
				doRemoveItem(item.uid)
                doSendMagicEffect(fromPosition, CONST_EFFECT_12)
        return TRUE             
end

my client get debug on use of scroll...

rep+
 
then the right script will be

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
pos = getPlayerPosition(cid)
                doCreatureSay(cid, "You've been awarded Donators experience by the scroll!", TALKTYPE_ORANGE_1)
                doPlayerAddExp(cid, 40000000)
                                doRemoveItem(item.uid, 1)
                doSendMagicEffect(pos, 12)
                 end
 
Last edited:

Similar threads

Back
Top