Hi otlander,
I'm using an event, and it creates the automatic TP, but the tp is not setting the "actionid".
Here is the script below:
help me?
I'm using an event, and it creates the automatic TP, but the tp is not setting the "actionid".
Here is the script below:
Lua:
local time = os.date("*t")
local timeopen1 = math.ceil(SBW_TIMEWAIT / 4)
local timeopen2 = math.ceil(SBW_TIMEWAIT / 2)
if (SBW_STARTAUTO) and (isInArray(SBW_DAYS,time.wday)) then
doBroadcastMessage(SBW_MSGWARNING)
if SBW_USEWAIT then
addEvent(doBroadcastMessage, timeopen1*1000*60, "[SNOWBALL WAR] - Resta(m) ".. timeopen2 .." minuto(s) para iniciar o evento!")
if (timeopen2 ~= timeopen1) then
addEvent(doBroadcastMessage, timeopen2*1000*60, "[SNOWBALL WAR] - Resta(m) ".. timeopen1 .." minuto(s) para iniciar o evento!")
end
addEvent(moveToEvent, SBW_TIMEWAIT*1000*60)
doCreateTeleport(1387, SBW_TPGO, SBW_TP)
else
if SBW_TFS == "0.3" then
doItemSetAttribute(doCreateItem(1387, SBW_TP), "aid", 2880)
else
doSetItemActionId(doCreateItem(1387, SBW_TP), 2880)
end
if(SBW_DURATION > 0) then
addEvent(endsnowball, SBW_DURATION*1000*60)
end
end
end
return true
end
help me?