• 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!

Not really small raid example in the newest TFS 0.3 beta 1+!

You didn't read my post at all because I don't want to execute raid every ten hours. I asked if it's possible to set a CHANCE to execute raid every ten hours. To make it clear every ten hours you got five per cent chance to spawn f. ex. Orshabaal
 
W8, I will check it in source..

@edit
Nope, it's not possible now, but I will report feature request.\

@edit2
I was looking for chance in source, and I have found other announce types, so tutorial UPDATED!
 
Last edited:
necropharus.xml
Code:
<raid>
<announce delay="0" type="event" message="hiho" />

<singlespawn delay="2000" name="Necropharus" x="33044" y="32400" z="10" />
</raid>

raids.xml
Code:
	<raid name="necropharus" file="necropharus.xml" interval2="480" margin="0"/>

Code:
[28/12/2008 19:32:27] [Error Raid::loadFromXml]: Could not load data/raids/necropharus.xml!
[28/12/2008 19:32:27] [Error Raids::loadFromXml]: failed to load raid necropharus
 
What TFS are you using? This is strange problem, I have made now about 50 raids to my server and all of them are working. Your raid seems to be alright..
 
one question

on TFS 0.2 versions its possible to make chance in xml file.
Does it mean that the raid automatically executes already or do i have to make global events aswell?
 
christiandb said:
necropharus.xml
Code:
<raid>
<announce delay="0" type="event" message="hiho" />

<singlespawn delay="2000" name="Necropharus" x="33044" y="32400" z="10" />
</raid>

raids.xml
Code:
	<raid name="necropharus" file="necropharus.xml" interval2="480" margin="0"/>


Code:
[28/12/2008 19:32:27] [Error Raid::loadFromXml]: Could not load data/raids/necropharus.xml!
[28/12/2008 19:32:27] [Error Raids::loadFromXml]: failed to load raid necropharus

I had that same error, for some weird reason when you write the code for singlespawn the old way, it doesn't work, which is like this:
<singlespawn delay="2000" name="Necropharus" x="33044" y="32400" z="10" />

And it doesn't report any error, instead it says the raid doesn't exist, but when you change it to the new way (elf way) it works perfectly, so you must remove that line, and replace it with this one:

Code:
<singlespawn delay="2000" name="Necropharus" pos="33044;32400;10" />

Hope that solves your problem ;)
 
@Gangsta-jr
I don't know how do chance work, but I will look into source of 0.2 (I'm using 0.3 4 ever ;d)

@up
o_O, I will check this out, and if you are right, I will fix tutorial.
Thanks!
 
For me it's worked with this script (just position changed). Dunno why christiandb have problems with it.
 
I had that same error, for some weird reason when you write the code for singlespawn the old way, it doesn't work, which is like this:


And it doesn't report any error, instead it says the raid doesn't exist, but when you change it to the new way (elf way) it works perfectly, so you must remove that line, and replace it with this one:

Code:
<singlespawn delay="2000" name="Necropharus" pos="33044;32400;10" />

Hope that solves your problem ;)

Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
	<raid name="necropharus" file="necropharus.xml" interval2="480" margin="0"/>
</raids>

Code:
<raid>
<announce delay="0" type="event" message="hiho" />
<singlespawn delay="2000" name="Necropharus" pos="33044;32400;10" />
</raid>
Code:
[05/01/2009 11:27:18] [Error Raid::loadFromXml]: Could not load data/raids/necropharus.xml!
[05/01/2009 11:27:18] [Error Raids::loadFromXml]: failed to load raid necropharus
 
1. your raid file is named Necropharus.xml or necropharus.xml?
2. Raids were broken before TFS0.3beta1, and I don't know how it's in 0.2.
 
if you are using globalevents, then you should put raid file to the right place, in globalevents. If in raids.xml, then in raids.
 
If you have like 5 raids in your server you can do this way:

globalevents/globalevents.xml add

PHP:
	<globalevent name="raids" interval="3720" script="raids.lua"/>

globalevents/scripts create w file called raids.lua
in raids.lua put this:

PHP:
local raids = {"Raid name1", "Raid name2", "Raid name3", "Raid name4", "Raid name5"}
function onThink(interval, lastExecution)
	executeRaid(raids[math.random(1,#raids)])
	return TRUE
end

it will execute raid random :)
 
Yeah, I will add this to my tutorial :)

Thanks for the idea!
 
Updated! Added random raid event + chance in globalevents, particularly(~) modified Simonel's idea.
 
You forgot to add using Lua scripts in raids.
So you can change items, remove items, add items, for example, a ferumbras raid, where the raid unblocks the way to ferumbras' tower.

Or you can make "conditioned raids", for example:
Example:
Code:
<raid>
<script delay="0" file="checkBoss.lua"/>
<announce type="event" delay="0" message="Raid message!" />

<areaspawn delay="12000" fromx="980" fromy="960" fromz="7" tox="1048" toy="1024" toz="7">
	<monster name="dragon lord" amount="100" />
</areaspawn>
<singlespawn delay="24000" name="Boss" x="1008" y="1008" z="7" />
</raid>

Code:
function onRaid()
	if getCreatureByName("Boss") > 0 then
		return TRUE
	end
	return FALSE
end

If the boss is already there, the raid will be canceled.

You can also make raids that are executed only when there's more than 20 players online or when there's a player with level 100 or more.
 
Hmmm everything works except Globalevents automatically raids :(

I made in data\globalevents\globalevents.xml

Code:
<globalevent name="raids" interval="900" script="raids.lua"/>

so its 15 minutes right?


then in data\globalevents\scripts file: raids.lua

l
Code:
ocal raids = {"Ghazbaran", "Orshabaal", "Morgaroth", "Ferumbras"}
local number = math.random(1, 4)
function onThink(interval, lastExecution)
	if number == 1 then
		executeRaid(raids[math.random(1,#raids)])
	end
return TRUE
end


I pasted to data\raids files with Ghazbaran, Orsha etc

But after 15 minutes nothing happenz.. there is not erros or something :/ Just nothing, what Ive missed?





edit: ok I missed some parts, now is working! thanks again for tutorial


edit2: omagad its not working again :///// xd anyone could help ?:D its only working when I wire raid ghazbaran. but auto raids are not working :/
 
Last edited:

Similar threads

Back
Top