How fix it?[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>
[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
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}
this Kawon is noob.
[B]registerCreatureEvent(cid, "CastleKingDeath")
registerCreatureEvent(cid, "CastleKingDamage")[/B]
<!-- 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"/>
<!-- Castle System -->
<talkaction words="!zamek;!castle" hide="yes" event="script" value="castlewar.lua"/>
<!-- Castle System -->
<monster name="Tiberia King" file="Tiberia King/tiberia king.xml"/>
<!-- Castle Mod -->
<globalevent name="CastleTimer" time="00:06" event="script" value="castle.lua"/>
[B]registerCreatureEvent(cid, "CastleKingDeath")
registerCreatureEvent(cid, "CastleKingDamage")[/B]
<!-- 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"/>
<!-- Castle System -->
<talkaction words="!zamek;!castle" hide="yes" event="script" value="castlewar.lua"/>
<!-- Castle System -->
<monster name="Tiberia King" file="Tiberia King/tiberia king.xml"/>
<!-- Castle Mod -->
<globalevent name="CastleTimer" time="00:06" event="script" value="castle.lua"/>