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

NPC Private war NPC system(War Anti Entrosa)

I have a bug. It happens almost always, some players do not remove them from the arena after the end of the war and when they leave with /c they still have storage and it is impossible to make spells (if the blocking of spells or any other was enabled in the war)
 
This script was released with zero support and likely the original poster wouldn't give you any kind of help as it was leaked of another server
 
I have a bug. It happens almost always, some players do not remove them from the arena after the end of the war and when they leave with /c they still have storage and it is impossible to make spells (if the blocking of spells or any other was enabled in the war)
any errors on the console?
 
all works, except when i say Enter.

20:30 Você foi teletranportado!

but nothing happens
 
Lua:
Lua Script Error: [Npc interface]

data/npc/scripts/wararena.lua:onCreatureSay

data/npc/scripts/wararena.lua:246: attempt to get length of a nil value

stack traceback:

[C]: in function '__len'

data/npc/scripts/wararena.lua:246: in function 'callback'

data/npc/lib/npcsystem/npchandler.lua:434: in function 'onCreatureSay'

data/npc/scripts/wararena.lua:24: in function <data/npc/scripts/wararena.lua:24>

Code:
2020-09-25 04:19:57 -  [Error - mysql_real_query] Query: INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES ('Frnkz Comojoga', 'Karkinha', 33, 32, 1601007597, 6)
2020-09-25 04:19:57 -  Message: Duplicate entry '6' for key 'guildwar_kills_unique'

Code:
2020-09-25 05:41:36 -  [Error - mysql_real_query] Query: UPDATE `war_arena` SET `inuse` = 0, `guild1` = 0, `guild2` = 0, `start` = 0, `maxplayers` = 0, `duration` = 0, `challenger` = 0, `playersOnTeamA` = 0, `pending` = 0, `playersOnTeamB` = 0
2020-09-25 05:41:36 -  Message: Table 'leonaglobal.war_arena' doesn't exist

can u help me?
 
Lua:
Lua Script Error: [Npc interface]

data/npc/scripts/wararena.lua:onCreatureSay

data/npc/scripts/wararena.lua:246: attempt to get length of a nil value

stack traceback:

[C]: in function '__len'

data/npc/scripts/wararena.lua:246: in function 'callback'

data/npc/lib/npcsystem/npchandler.lua:434: in function 'onCreatureSay'

data/npc/scripts/wararena.lua:24: in function <data/npc/scripts/wararena.lua:24>

Code:
2020-09-25 04:19:57 -  [Error - mysql_real_query] Query: INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES ('Frnkz Comojoga', 'Karkinha', 33, 32, 1601007597, 6)
2020-09-25 04:19:57 -  Message: Duplicate entry '6' for key 'guildwar_kills_unique'

Code:
2020-09-25 05:41:36 -  [Error - mysql_real_query] Query: UPDATE `war_arena` SET `inuse` = 0, `guild1` = 0, `guild2` = 0, `start` = 0, `maxplayers` = 0, `duration` = 0, `challenger` = 0, `playersOnTeamA` = 0, `pending` = 0, `playersOnTeamB` = 0
2020-09-25 05:41:36 -  Message: Table 'leonaglobal.war_arena' doesn't exist

can u help me?

Code:
CREATE TABLE `guildwar_arenas` (
  `name` varchar(40) NOT NULL DEFAULT 'Default Arena Name',
  `inuse` int(11) NOT NULL DEFAULT '0',
  `type` int(11) NOT NULL DEFAULT '0',
  `guild1` int(11) DEFAULT NULL,
  `guild2` int(11) DEFAULT NULL,
  `start` bigint(15) NOT NULL,
  `end` bigint(15) NOT NULL,
  `team_a_posx` int(11) NOT NULL,
  `team_a_posy` int(11) NOT NULL,
  `team_a_posz` int(11) NOT NULL,
  `team_b_posx` int(11) NOT NULL,
  `team_b_posy` int(11) NOT NULL,
  `team_b_posz` int(11) NOT NULL,
  `maxplayers` int(11) DEFAULT NULL,
  `pending` int(11) NOT NULL,
  `duration` int(11) NOT NULL,
  `challenger` int(11) NOT NULL,
  `arena_team_a_pos` int(1) NOT NULL DEFAULT '0',
  `playersOnTeamA` int(1) DEFAULT '0',
  `playersOnTeamB` int(1) NOT NULL DEFAULT '0',
  `disablepotions` int(11) DEFAULT NULL,
  `exaust_ssa` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estrutura da tabela `guildwar_kills`
--

CREATE TABLE `guildwar_kills` (
  `id` int(11) NOT NULL,
  `killer` varchar(50) NOT NULL,
  `target` varchar(50) NOT NULL,
  `killerguild` int(11) NOT NULL DEFAULT '0',
  `targetguild` int(11) NOT NULL DEFAULT '0',
  `warid` int(11) NOT NULL DEFAULT '0',
  `time` bigint(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
retornou que
Code:
#1050 - Table 'guildwar_arenas' already exists
#1050 - Table 'guildwar_kills' already exists
 
Back
Top