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

[8.7] Problem with all scripts

cesar10

Active Member
Joined
Aug 4, 2009
Messages
427
Reaction score
37
well i downloaded the forgotten server v0.2.10 and no script is working like i never added to xlm it doesnt give any error only says i cant use item... i tested scripts on other server and it worked
anyone knows what happens?
please help
 
well i made a simple manarune script:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerAddMana(cid, 2000)
doSendMagicEffect(getPlayerPosition(cid), 12)
doCreatureSay(cid, "Small Manarune", TALKTYPE_MONSTER)
if item.type > 1 then
doChangeTypeItem(item.uid, item.type-1)
else
doRemoveItem(item.uid, 1)
end
end

and didnt work just says sorry you canot use this item

and i tryed with this one too:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
            local health = getCreatureMaxHealth(cid)
            local p = getCreaturePos(cid)
            local mp = {x=1023, y=1019, z=7}
            doPlayerAddMana(cid, health)
            doSendMagicEffect(p, 14)
            doSendMagicEffect(mp, 31)
            doSendAnimatedText(p, "Health UP!", math.random(1, 255))
            doPlayerSendTextMessage(cid, 19, "We Have Fulled Your Health")
        return true
end

and the same
its like if i never added the script
 
probably registered it wrong in the xml

never saw that it changed.. i had:
Code:
<action itemid="2281" event="script" value="manarunes/Small Manarune.lua"/>

never saw it was:
Code:
<action itemid="2281" script="manarunes/Small Manarune.lua"/>

S:!! well thx

Code:
You must spread some Reputation around before giving it to Cykotitan again.
:mad:
 
Back
Top