• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Creating items when raid is activated

oualid6496

Well-Known Member
Joined
Aug 24, 2014
Messages
408
Solutions
4
Reaction score
78
Location
Dordrecht, The Netherlands
Is it possible to create items like fire fields when a raid is activated? I saw that someone asked the same question but for an older tfs thought that there could be a function now :p
 
Yes you can create or remove anything at anytime in any script, however when you do create these items you have to take into account the amount and where you place them. But yes you can create movable items, fields, even entire maps.

If its just placement than you can randomize the placement while setting conditions not to set them in houses or pz zones. If removal is involved than you need to be specific about the placement, meaning you need to set exact coordinates or at the very least a scan of the area which can become complicated very quickly due to the stack order of things.
 
Yes you can create or remove anything at anytime in any script, however when you do create these items you have to take into account the amount and where you place them. But yes you can create movable items, fields, even entire maps.

If its just placement than you can randomize the placement while setting conditions not to set them in houses or pz zones. If removal is involved than you need to be specific about the placement, meaning you need to set exact coordinates or at the very least a scan of the area which can become complicated very quickly due to the stack order of things.

Yes I will use coordinates and create items 1 by 1 not in a area and also remove it with the coordinates. But do you know how to add them?
 
But how will you add it to the raid file using delay?
raids are coded in sources + .xml file. You cannot do that here. You need to create new raid system in globalevents in lua.
You can add delay using addEvent function.

Code:
function doSomething()
    Game.createItem(ID, amount, position)
end

addEvent(doSomething, 60000) -- 60000 is minute
 
Back
Top