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

Guild Rank

homarwh

Just a Milan fan.
Joined
Dec 29, 2012
Messages
93
Reaction score
2
Location
Mexico
well, i want a movement when a player stand in X sqm or teleport this get a new guild, i got this until now

Code:
function onStepIn(cid)

getPlayerGuildLevel(cid) if(playerGuildLevel < GUILDLEVEL_LEADER) then
doPlayerSetGuildRank(cid, Leader)

end
end

and

Code:
    <movevent type="StepIn" uniqueid="12000" event="script" value="nationrank.lua"/>

doesnt works, in the server says something about "compare nil with number" on line 3 when i step in
 
well, i want a movement when a player stand in X sqm or teleport this get a new guild, i got this until now

Code:
function onStepIn(cid)

getPlayerGuildLevel(cid) if(playerGuildLevel < GUILDLEVEL_LEADER) then
doPlayerSetGuildRank(cid, Leader)

end
end

and

Code:
    <movevent type="StepIn" uniqueid="12000" event="script" value="nationrank.lua"/>

doesnt works, in the server says something about "compare nil with number" on line 3 when i step in

Try this:

Code:
function onStepIn(cid)
    if not isPlayer(cid) then
        return true
    end
    if getPlayerGuildLevel(cid) < GUILDLEVEL_LEADER then
        doPlayerSetGuildLevel(cid, GUILDLEVEL_LEADER)
    end
return true
end
 
Back
Top Bottom