warmenopen
New Member
- Joined
- Feb 16, 2017
- Messages
- 7
- Reaction score
- 0
can anyone help me with this ? i need a script to do a custom war system, only players with this war skull have permission to enter on teleport
local templePosition = Position(1283, 727, 6)
function onStepIn(player, item, position, fromPosition)
if not player then
return true
end
local guild = player:getGuild()
if not player:getGuild() or player:getLevel() <= 150 then
player:teleportTo(templePosition, false)
player:popupFYI("[CoH] Voce nao possui uma guild ou não possui level 150+.")
return
end
return true
end
//isInWar(cid, target)
local templePosition = Position(159, 51, 7)
function onStepIn(player, item, position, fromPosition)
if not player then
return true
end
local emblem = player:getEmblem()
if not player:getEmblem() or player:getLevel() <= 150 then
player:teleportTo(templePosition, false)
player:popupFYI("[CoH] Voce nao possui uma guild ou não possui level 150+.")
return
end
return true
end
Here's the different emblems..but how i declare GUILDEMBLEM_ALLY ??
GUILDEMBLEM_NONE
GUILDEMBLEM_ALLY
GUILDEMBLEM_ENEMY
GUILDEMBLEM_NEUTRAL
GUILDEMBLEM_MEMBER
GUILDEMBLEM_OTHER
local emblem = player:getEmblem()
if emblem == GUILDEMBLEM_ALLY then
-- or
if emblem == 1 then