Discovery
Developing myself
i need to fixed this script :/
[Error - GlobalEvent Interface ]
data/globalevents/scripts/rashid.luanStartup
Description:
<LuaInterface::luaDoCreateNpc> Cannot create npc: Rashid
LUA:
function onStartup()
local Dia = os.date("%A")
if Dia == "Monday" then
RashidPos = {x = 32206, y = 31155, z = 7}
elseif Dia == "Tuesday" then -- Terça-Feira
RashidPos = {x = 32302, y = 32834, z = 7}
elseif Dia == "Wednesday" then -- Quarta-Feira
RashidPos = {x = 32579, y = 32753, z = 7}
elseif Dia == "Thursday" then -- Quinta-Feira
RashidPos = {x = 33066, y = 32876, z = 6}
elseif Dia == "Friday" then -- Sexta-Feira
RashidPos = {x = 33227, y = 32481, z = 7}
elseif Dia == "Saturday" then -- Sabado
RashidPos = {x = 33171, y = 31814, z = 6}
elseif Dia == "Sunday" then
RashidPos = {x = 32328, y = 31783, z = 6}
end
doCreateNpc("Rashid", RashidPos)
end
Last edited by a moderator: