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

Raid - Need help! Pay rep++!

midas

New Member
Joined
Apr 11, 2009
Messages
16
Reaction score
0
Location
Poland
Hello ,im trying to make raid on my serwer ,but i have a little problem. I saw a lot of spoilers and it looks ok ,but it won't work. Plz help me with this script.

(Im using tfs 0.3.5 Crying Damson)

First of all its:

data->raids->raids.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
	<!--
		executed on average once every 2 minutes

		<raid name="Example" file="example.xml" interval2="2" margin="0" reftype="single" ref="no"/>
			won't be executed again till Cave Rat gets killed

		<raid name="Example2" file="example.xml" interval2="2" margin="0" reftype="block" ref="no"/>
			will stay as 'running' until Cave Rat gets killed

[COLOR="Red"][B]<raid name="Fletgharan" file="Fletgharan.xml" interval2="4200" margin="0" enabled="0"/>[/B][/COLOR]
	-->
</raids>



second:


data->raids->fletgharan.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<raid>
<announce delay="0" type="event" message="NO ONE WILL STOP ME THIS TIME!" />
<announce delay="7000" type="event" message="I returned from death and you dream about defeating me?" />
<announce delay="8000" type="event" message="Witness the first seconds of my eternal world domination!" />
<announce delay="10000" type="event" message="Even in my weakened state I will crush you all!" />
<singlespawn delay="0" name="Fletgharan" x="450" y="747" z="9" />
</raid>

And it's all ok isn't it?

But in game ,if i wrote /raid Fletgharan i see this:


23:36 Could not execute raid. (Raid does not exist or other raid is already running)

and error in console


[22/12/2009 23:38:39] Lua Script Error: [TalkAction Interface]
[22/12/2009 23:38:39] data/talkactions/scripts/raid.lua:onSay

[22/12/2009 23:38:39] luaDoExecuteRaid(). Raid with name Fletgharan does not exists.


So let's see my script in talkactions.

data->talkactions->scripts->raid

Code:
function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return true
	end

	if(not executeRaid(param)) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not execute raid. (Raid does not exist or other raid is already running)")
		return true
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Raid started.")
	return true
end




PLZ HELP XD
 
<raid name="Fletgharan" file="Fletgharan.xml" interval2="4200" margin="0" enabled="0"/>
Change to
<raid name="Fletgharan" file="Fletgharan.xml" interval2="4200" margin="0" enabled="1"/>

So raids.xml should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<raids>
<!--
executed on average once every 2 minutes

<raid name="Example" file="example.xml" interval2="2" margin="0" reftype="single" ref="no"/>
won't be executed again till Cave Rat gets killed

<raid name="Example2" file="example.xml" interval2="2" margin="0" reftype="block" ref="no"/>
will stay as 'running' until Cave Rat gets killed

<raid name="Fletgharan" file="Fletgharan.xml" interval2="4200" margin="0" enabled="1"/>
-->
</raids>
 
I edit and its the same problem;p

12:39 /raid Fletgharan
12:39 Could not execute raid. (Raid does not exist or other raid is already running)


[23/12/2009 12:39:50] Lua Script Error: [TalkAction Interface]
[23/12/2009 12:39:50] data/talkactions/scripts/raid.lua:onSay

[23/12/2009 12:39:50] luaDoExecuteRaid(). Raid with name Fletgharan does not exists.


Plz help xD
 
Back
Top