• 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 dont work !?

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
when i try 1 raid thsi error come in console ?
Code:
[05/06/2009 09:15:05] Lua Script Error: [TalkAction Interface] 
[05/06/2009 09:15:05] data/talkactions/scripts/raid.lua:onSay

[05/06/2009 09:15:05] luaDoExecuteRaid(). Raid with name "Sweddy rat does not exists.
and ingame its say that i dont have any raid whit that name ? but i have ?
 
Raid's File :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
            <raid name="Orc sweddy" file="Orc sweddy.xml" interval2="0" margin="0"/>
            <raid name="Demon sweddy" file="Demon sweddy.xml" interval2="0" margin="0"/>
            <raid name="Rat sweddy" file="Rat sweddy.xml" interval2="0" margin="0"/>
</raids>

1 raid (all are the same)
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--This raid was made by: OT RaidMaker v1.4-->
<raid>
  <!--Announcements-->
  <announce delay="1" type="Warning" message="The sweddy city are attacked by Rat'S! pff Noob's!" />
  <!--Single Spawns-->
  <singlespawn delay="1" name="cave rat" x="109" y="352" z="6" />
  <!--Area Spawns-->
  <areaspawn delay="1" fromx="113" fromy="365" fromz="6" tox="128" toy="365" toz="6">
    <monster name="rat" amount="70" />
  </areaspawn>
  <areaspawn delay="3" fromx="114" fromy="367" fromz="6" tox="118" toy="372" toz="6">
    <monster name="rat" amount="10" />
  </areaspawn>
  <areaspawn delay="2" fromx="124" fromy="345" fromz="6" tox="129" toy="349" toz="6">
    <monster name="cave rat" amount="40" />
  </areaspawn>
</raid>

Talkaction script "/raid script"
Code:
function onSay(cid, words, param, channel)
	if(param == "") then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return TRUE
	end

	local ret = executeRaid(param)
	if(ret == LUA_ERROR) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such raid does not exists.")
		return TRUE
	end

	if(ret == FALSE) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not execute raid.")
		return TRUE
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Raid started.")
	return TRUE
end
 
i have tested
/raid "Sweddy rat
/raid Sweddy rat
/raid "Rat sweddy
/raid Rat sweddy
still dont work :O

Problem is that you have wrong filename etc.
because the error states that "Sweddy Rat" doesn't exists, and you've called some files for "Rat Sweddy" and rest for "Sweddy Rat". You have configured it to load "Sweddy Rat" which doesn't exist.

So check your names, and then:
/reload raids
and check for errors.
 
Name are fine :O
Rat sweddy.xml and in raids its
Rat sweddy- Rat sweddy.xml blabla

[05/06/2009 10:28:25] Lua Script Error: [TalkAction Interface]
[05/06/2009 10:28:25] data/talkactions/scripts/raid.lua:eek:nSay

[05/06/2009 10:28:25] luaDoExecuteRaid(). Raid with name Rat sweddy does not exists.
 
I show it here it is :eek: ?
<?xml version="1.0" encoding="utf-8"?>
<!--this raid was made by: Ot raidmaker v1.4-->
<raid>
<!--announcements-->
<announce delay="1" type="warning" message="the sweddy city are attacked by rat's! Pff noob's!" />
<!--single spawns-->
<singlespawn delay="1" name="cave rat" x="109" y="352" z="6" />
<!--area spawns-->
<areaspawn delay="1" fromx="113" fromy="365" fromz="6" tox="128" toy="365" toz="6">
<monster name="rat" amount="70" />
</areaspawn>
<areaspawn delay="3" fromx="114" fromy="367" fromz="6" tox="118" toy="372" toz="6">
<monster name="rat" amount="10" />
</areaspawn>
<areaspawn delay="2" fromx="124" fromy="345" fromz="6" tox="129" toy="349" toz="6">
<monster name="cave rat" amount="40" />
</areaspawn>
</raid>
 
the problem is that you should have the script files in the same folder as raids.xml is in, or put "scripts/" before the file name...

for an example, your raids.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
            <raid name="Orc sweddy" file="scripts/Orc sweddy.xml" interval2="0" margin="0"/>
            <raid name="Demon sweddy" file="scripts/Demon sweddy.xml" interval2="0" margin="0"/>
            <raid name="Rat sweddy" file="scripts/Rat sweddy.xml" interval2="0" margin="0"/>
</raids>
 
the problem is that you should have the script files in the same folder as raids.xml is in, or put "scripts/" before the file name...

for an example, your raids.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
            <raid name="Orc sweddy" file="scripts/Orc sweddy.xml" interval2="0" margin="0"/>
            <raid name="Demon sweddy" file="scripts/Demon sweddy.xml" interval2="0" margin="0"/>
            <raid name="Rat sweddy" file="scripts/Rat sweddy.xml" interval2="0" margin="0"/>
</raids>
Thx
 
Back
Top