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
second:
data->raids->fletgharan.xml
And it's all ok isn't it?
But in game ,if i wrote /raid Fletgharan i see this:
and error in console
So let's see my script in talkactions.
data->talkactions->scripts->raid
PLZ HELP XD
(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.luanSay
[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