Ok, as noone is looking at already answered topics, I decided to create a new one.
here is my problem:
I've got a script to make random temple positions:
And the problem is that when i'm moving it to creaturescripts (am I right?) i don't know what to put in 'creaturescripts.xml'.
I made a code:
Answer = REP++
here is my problem:
I've got a script to make random temple positions:
local temple = {
{x=,y=,z=},
{x=,z=,z=},
{x=,z=,z=},
{x=,z=,z=},
{x=,y=,z=}
}
local condition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3000)
function onLogin(cid)
doAddCondition(cid, condition)
doTeleportThing(cid, temple[math.random(getWorldCreatures(0) >= 50 and #temple or 1)])
return true
end
And the problem is that when i'm moving it to creaturescripts (am I right?) i don't know what to put in 'creaturescripts.xml'.
I made a code:
But it's not working properly. What's the problem?<event type="login" name="templelogin" event="script" value="temples.lua"/>
Answer = REP++