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

Raids in globalevents. Again.

Hermes

dziwki kola gramy w lola
Joined
Nov 17, 2007
Messages
1,867
Reaction score
14
Location
Poland
Hello,

I know that something like this topic is already there, but there is no answer "how to".

TFS developers had changed the raid thing and wtf? Could someone make an example of one raid + globalevent script? I will be very thankful :)

Reg~,
Hermes
 
I have made raid example just for test.

Code:
<raid>
<announce delay="0" message="First announce!" />
<singlespawn delay="2000" name="Demon" x="1008" y="1008" z="7" />

<announce delay="4000" message="Second announce!" />
<areaspawn delay="6500" fromx="980" fromy="960" fromz="7" tox="1048" toy="1024" toz="7">
<monster name="dragon lord" amount="10" />
<monster name="dragon lord hatchling" amount="50" />
</areaspawn>

</raid>

and it gives me an error, and nothing happens

Code:
[15/11/2008 14:17:09] [Notice AnnounceEvent::configureRaidEvent]: Raid: type tag missing for announce event. Using default: 21
[15/11/2008 14:17:09] [Notice AnnounceEvent::configureRaidEvent]: Raid: type tag missing for announce event. Using default: 21

Reg~,
Hermes
 
@up
No way.. Doesn't work. BUT! I've made some progress :>
I have made an easy script just made to execute raid onUse.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doSendMagicEffect(fromPosition, CONST_ME_SOUND_GREEN)
	executeRaid(xx)
	doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'Raid xx started.')
end
And it gives me an error:
Code:
[15/11/2008 20:29:30] Lua Script Error: [Action Interface] 
[15/11/2008 20:29:30] data/actions/scripts/raidvampire.lua:onUse

[15/11/2008 20:29:30] luaExecuteRaid(). Such raid does not exists.

In my raids.xml file I have added line:
Code:
		<raid name="xx" file="xx.xml" interval2="120" margin="0"/>

And ofcourse xx.xml
Code:
<raid>
<announce delay="0" type="event" message="First announce!" />
<singlespawn delay="2000" name="Demon" x="1008" y="1008" z="7" />

<announce delay="4000" type="event" message="Second announce!" />
<areaspawn delay="6500" fromx="980" fromy="960" fromz="7" tox="1048" toy="1024" toz="7">
<monster name="dragon lord" amount="50" />
<monster name="dragon lord hatchling" amount="100" />
</areaspawn>

</raid>

So what's wrong? Maybe our Elf will help? :)

@edit
I replaced this line
Code:
	executeRaid(xx)
with this
Code:
	executeRaid("xx")
it gives no error, but the raid is not launching.

PS. Currently Active Users Viewing This Thread: 3 (3 members and 0 guests)
Hermes, -> Elf <-, Empty
o_O
 
Last edited:
Back
Top