Im trying to understand the system but im kinda lost
I have this part in the script
if player:getLevel() >= 30000 or player:getGroup() >= 3 then
Im trying to make it like
if someone is higher than group id 3 he doesnt need the 30k level but its not working
thats the problem..
what im doing wrong if I can ask
tfs 1.3
thanks
full script:
problem solved
player:getGroup() >= 3 then to player:getGroup():getId() >= 3 then
I have this part in the script
if player:getLevel() >= 30000 or player:getGroup() >= 3 then
Im trying to make it like
if someone is higher than group id 3 he doesnt need the 30k level but its not working
thats the problem..
what im doing wrong if I can ask
tfs 1.3
thanks
full script:
LUA:
local failPosition = Position(1186, 792, 7)
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
if player:getLevel() >= 30000 or player:getGroup() >= 3 then
return true
end
player:teleportTo(failPosition)
failPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You need to be at least Level 30000 in order to pass.')
return true
end
Post automatically merged:
problem solved
player:getGroup() >= 3 then to player:getGroup():getId() >= 3 then
Last edited: