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

My second Lua script :o

Pro Warbringer

Retired with developing
Joined
Sep 23, 2008
Messages
3,582
Reaction score
24
Location
Austria
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
if getPlayerLevel (cid) >= 80 then
        setCreatureMaxHealth(cid, health)
	setCreatureMaxMana(cid, mana)
else
doPlayerSendCancel (cid,"You are not allowed to enter the Demona..")
end
elseif item.itemid == 1945 then
if getPlayerLevel (cid) >= 80 then
        setCreatureMaxHealth(cid, health)
	setCreatureMaxMana(cid, mana)
else
doPlayerSendCancel (cid,"You are not allowed to enter the Demona..")
end
end
Return True

well i want to know how can i make the switch remove the wall it aint done the script
i just started yesterday and im feeling good innit :)
please help me :D
 
Just a small note, you haven't declared "health" and "mana" anywhere, so it doesn't know how much to set the MaxHealth\Mana to anywhere. o_O

And you've got two checks for the same itemid, 1945.
 
Back
Top