vDk
Member
On chyba nie chce teleportowania przy zalogowaniu tylko przy śmierci... a wasze skrypty będą tpować graczy przy każdym zalogowaniu.
creaturescripts.xml dodaj
Code:<event type="login" name="Temple" script="temple.lua"/>
Podtem w w scripts dodaj plik temple.lua a w nim:
Code:function onLogin(cid) local swiatynie = { {x=,y=,z=}, {x=,z=,z=}, {x=,y=,z=} } doTeleportThing(cid, swiatynie[math.random(1, #swiatynie)]) return true end
I na koniec w login.lua dodaj
Code:registerCreatureEvent(cid, "Temple")
i powinno działać
{x=,y=,z=},
{x=,z=,z=},
{x=,y=,z=}
pozmieniales?
creaturescripts.xml dodaj
Code:<event type="login" name="Temple" script="temple.lua"/>
Podtem w w scripts dodaj plik temple.lua a w nim:
Code:function onLogin(cid) local swiatynie = { {x=,y=,z=}, {x=,z=,z=}, {x=,y=,z=} } doTeleportThing(cid, swiatynie[math.random(1, #swiatynie)]) return true end
I na koniec w login.lua dodaj
Code:registerCreatureEvent(cid, "Temple")
i powinno działać
function onLogin(cid)
if(InitShopComunication == 0) then
local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
InitShopComunication = eventServ
end
registerCreatureEvent(cid, "Temple")
registerCreatureEvent(cid, "PlayerDeath")
registerCreatureEvent(cid, "PlayerKill")
return true
end
Signed.moj server przez takie pomaganie staje sie coraz mniej wyjatkowy...
moj server przez takie pomaganie staje sie coraz mniej wyjatkowy...