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

CreatureEvent [Talkactions,Globalevents,Lib,Monsters] Castle War System + Maps!!!

When i kill king i see this error:
[14/01/2011 00:12:13] data/lib/102-castle.lua:122: attempt to call global 'getGuildName' (a nil value)
[14/01/2011 00:12:13] stack traceback:
[14/01/2011 00:12:13] data/lib/102-castle.lua:122: in function 'Castle_endEvent'
[14/01/2011 00:12:13] data/creaturescripts/scripts/castle_kill.lua:3: in function <data/creaturescripts/scripts/castle_kill.lua:1>
How fix it?
 
Thxx for this system is very good
i rep ++ for this work

but i need tags of creaturescripts, globalevents and talkactions
for test this !!!

plxxx i need so much and i rep++ for a help

sry my inglish im from brazil

;D
 
Code:
[6:58:32.567] [Error - CreatureEvent::configureEvent] No valid type for creature event.event.castle
[6:58:32.567] [Warning - BaseEvents::loadFromXml] Cannot configure an event
[6:58:32.567] [Error - CreatureEvent::configureEvent] No valid type for creature event.event.castle
[6:58:32.567] [Warning - BaseEvents::loadFromXml] Cannot configure an event
[6:58:32.585] [Error - GlobalEvent::configureEvent] No valid type "event.castle" for globalevent with name event.castle
[6:58:32.585] [Warning - BaseEvents::loadFromXml] Cannot configure an event
What type I must add ?
 
I do not know what to do with these coding and how to edit on the map
Describe to us, what are these lines.....
Code:
days = {2, 5},
time_1 = 10*60*1000, -- time from start event to fight
time_2 = 30*60*1000, -- time from fight to end event
guildOwnStorage = 17000,
attackersStorage = 17002,
enabledStorage = 17006,
endedStorage = 17007,
leaderLevel = 50000,
membersNeeded = 5,
monster = "Tiberia King",
monsterSpawn = {x = 2470, y = 2477, z = 3},
startAttackers = {
[1] = {x = 2444, y = 2491, z = 6},
[2] = {x = 2494, y = 2503, z = 6},
[3] = {x = 2488, y = 2464, z = 6}
},
gates = {
[1] = {pos = {x = 2456, y = 2487, z = 6}, itemid = 9533},
[2] = {pos = {x = 2456, y = 2488, z = 6}, itemid = 9533},

[3] = {pos = {x = 2486, y = 2498, z = 6}, itemid = 9485},
[4] = {pos = {x = 2487, y = 2498, z = 6}, itemid = 9485},

[5] = {pos = {x = 2490, y = 2471, z = 6}, itemid = 9486},
[6] = {pos = {x = 2491, y = 2471, z = 6}, itemid = 9486},
[7] = {pos = {x = 2492, y = 2471, z = 6}, itemid = 9486},

-- new
[8] = {pos = {x = 2452, y = 2480, z = 6}, itemid = 9533},
[9] = {pos = {x = 2452, y = 2481, z = 6}, itemid = 9533},
[10] = {pos = {x = 2452, y = 2482, z = 6}, itemid = 9533},

[11] = {pos = {x = 2485, y = 2498, z = 6}, itemid = 9485},

[12] = {pos = {x = 2498, y = 2502, z = 6}, itemid = 9533},
[13] = {pos = {x = 2498, y = 2503, z = 6}, itemid = 9533},

[14] = {pos = {x = 2485, y = 2468, z = 6}, itemid = 9486},
[15] = {pos = {x = 2486, y = 2468, z = 6}, itemid = 9486},
[16] = {pos = {x = 2487, y = 2468, z = 6}, itemid = 9486},



},
}
CASTLE_DAYS = {3,6}

Please how, the quickest answer
 
i cant open your MAP in RME editor... i need your items.otb or your Mapeditor
 
I think the idea in this event is to kill the opposite sides king or queen not 100% sure tho.
 
[0:58:56.220] [Warning - Monster::Monster] Unknown event name - CastleKingDeath
[0:58:56.220] [Warning - Monster::Monster] Unknown event name - CastleKingDamage

how fix this error?
 
Last edited:
[05/05/2011 17:17:51] [Warning - Monster::Monster] Unknown event name - CastleKingDeath
[05/05/2011 17:17:51] [Warning - Monster::Monster] Unknown event name - CastleKingDamage

Using TFS 0.3.6pl1...

How fix this error?
 
OK. I fixed this error.
Fix (0.3.6 for TFS - for others not tested):

File: "data\creaturescripts\scripts\login.lua". Add:
Code:
[B]registerCreatureEvent(cid, "CastleKingDeath")
registerCreatureEvent(cid, "CastleKingDamage")[/B]

Copy: "Castle System\creaturescripts\castle_damage.lua" and "Castle System\creaturescripts\castle_kill.lua" to "data\creaturescripts\scripts\"
File: "data\creaturescripts\creaturescripts.xml". Add (or edit):
Code:
<!-- Castle System -->
<event type="[B]death[/B]" name="CastleKingDeath" event="script" value="castle_kill.lua"/>
<event type="[B]statschange[/B]" name="CastleKingDamage" event="script" value="castle_damage.lua"/>

Copy: "Castle System\talkactions\castlewar.lua" to "data\talkactions\scripts\"
File: "data\creaturescripts\creaturescripts.xml". Add:
Code:
<!-- Castle System -->
<talkaction words="!zamek;!castle" hide="yes" event="script" value="castlewar.lua"/>

Create Folder: "data\monster\Tiberia King\"
Copy: "Castle System\monster\tiberia king.xml" to "data\monster\Tiberia King\"

File: "data\monsters\monsters.xml". Add:
Code:
<!-- Castle System -->
<monster name="Tiberia King" file="Tiberia King/tiberia king.xml"/>

Copy: "Castle System\lib\102-castle.lua" to "data\lib\"

Copy: "Castle System\globalevents\castle.lua" to "data\globalevents\scripts\"
File: "data\globalevents\globalevents.xml". Add:
Code:
<!-- Castle Mod -->
<globalevent name="CastleTimer" time="00:06" event="script" value="castle.lua"/>

I helped you? If so .. give REP + +



A teraz po polsku :) Na prośbę @JokerOo

W pliku "data\creaturescripts\scripts\login.lua" dodajemy:
Code:
[B]registerCreatureEvent(cid, "CastleKingDeath")
registerCreatureEvent(cid, "CastleKingDamage")[/B]

Kopiujemy pliki "Castle System\creaturescripts\castle_damage.lua" oraz "Castle System\creaturescripts\castle_kill.lua" do "data\creaturescripts\scripts\".

W pliku "data\creaturescripts\creaturescripts.xml" dodajemy (lub zastępujemy już istniejący):
Code:
<!-- Castle System -->
<event type="[B]death[/B]" name="CastleKingDeath" event="script" value="castle_kill.lua"/>
<event type="[B]statschange[/B]" name="CastleKingDamage" event="script" value="castle_damage.lua"/>

Kopiujemy "Castle System\talkactions\castlewar.lua" do "data\talkactions\scripts\".
W pliku "data\creaturescripts\creaturescripts.xml" dodajemy:
Code:
<!-- Castle System -->
<talkaction words="!zamek;!castle" hide="yes" event="script" value="castlewar.lua"/>

Tworzymy folder "Tiberia King" w "data\monster\".
Kopiujemy "Castle System\monster\tiberia king.xml" do "data\monster\Tiberia King\"

W pliku "data\monsters\monsters.xml" dodajemy:
Code:
<!-- Castle System -->
<monster name="Tiberia King" file="Tiberia King/tiberia king.xml"/>

Kopiujemy "Castle System\lib\102-castle.lua" do "data\lib\".

Kopiujemy "Castle System\globalevents\castle.lua" do "data\globalevents\scripts\".
W pliku "data\globalevents\globalevents.xml" dodajemy:
Code:
<!-- Castle Mod -->
<globalevent name="CastleTimer" time="00:06" event="script" value="castle.lua"/>

Jeśli pomogłem? Mile widziany REP++
 
Last edited:
Back
Top