Hi otlanders,
I have these two scripts, one for level checking and one for guild or not and I wanted to do it all in one!
First:
second:
Help?
the condition of the script is to have "x" level and have "guild" ...
I have these two scripts, one for level checking and one for guild or not and I wanted to do it all in one!
First:
Code:
function onStepIn(cid, item, position, fromPosition)
level = 80
if getPlayerLevel(cid) < level then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doPlayerSendCancel(cid,"{Castle24h} - Somente level " .. level .. " ou mais podem passar aqui.")
end
return TRUE
end
Lua:
function onStepIn(cid, item, position, fromPosition)
if getPlayerGuildId(cid) > 0 then
doPlayerSendTextMessage(cid, 27, "Voce entrou, sua guild é a "..getPlayerGuildName(cid)..".")
return true
else
doPlayerSendTextMessage(cid, 27, "Voce não possue guild, portanto não pode entrar no Castle24Horas.")
doTeleportThing(cid, fromPosition)
return false
end
end
Help?
Post automatically merged:
the condition of the script is to have "x" level and have "guild" ...