GithubHelp home page GithubHelp logo

dastgirp / ebg Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 22.0 395 KB

ExtendedBG and Ranking System for Hercules as a plugin.

Home Page: http://herc.ws/board/topic/8814-releaseextendedbg

C++ 19.26% C 78.49% Shell 2.06% Lua 0.19%
herculesws hpm-plugin extendedbg eamod hercules athena

ebg's Introduction

Build Status: Build Status

Extended Battlegrounds for Hercules - PLUGIN

Plugin for Extended Battleground for Hercules

Support Forum: http://herc.ws/board/topic/8814-release-extendedbg-for-hercules-with-eamod-bg-modes/

Contributed By

  • Dastgir/Hercules.
  • jaBote/Hercules.

Installation Steps

Client:

  • Put the contents of resnametable.txt to GRF
  • Put the contents of mapnametable.txt to GRF
  • Optional:
    • To be done only if .bg_common[6] have 1st bit set and .bg_common[7] is custom Item
    • Put contents of System/itemInfo.lua to your itemInfo.lua/lub

Server:

  • Conf:
    • Copy contents of conf/map/maps.conf at end of your maps.conf
    • Copy contents of conf/import/battle.conf in your herc/conf/import/battle.conf depending on your configuration
    • Copy conf/import/eBG.conf file in your herc/conf/import/ folder
  • DB:
    • Copy db/emblems folder to your hercules/db/emblems folder
    • Copy contents of db/map_index.txt at end of your map_index.txt
    • Optional:
      • To be done only if .bg_common[6] have 1st bit set and .bg_common[7] is custom Item
        • Copy the contents of item_db.conf to your item_db2.conf
        • Copy the contents of item_group.conf to your (pre-)re/item_group.conf
  • MapCache:
    • Copy all files in maps/ folder to "maps/re" or "maps/pre-re" depending on your configuration
  • NPC:
    • Copy all files in npc/ folder to your herc/npc/ folder
    • Add this line at end of scripts_custom.conf:
      • @include "npc/scripts_eBG.conf"
  • Plugins:
    • Copy all files in plugin folder to your herc/src/plugins folder
    • compile and enable 2 plugins:
      • ExtendedBG
      • ExtendedBG-char
    • (All other files are just includes)
  • SQL:
    • Execute the file sql-files/bg_main.sql on your SQL Server
    • Optional (If VIRT_GUILD is commented from eBG_Common.h):
      • To be executed only IF VIRT_GUILD is commented from eBG_common.h
      • Execute the file sql-files/bg_guild.sql

ebg's People

Contributors

alfredox01 avatar daniefkd avatar danieldpl avatar dastgirp avatar kubixservice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ebg's Issues

Outdated eBG in v2019.05.05+3

Hi, eBG is broken at the last Release v2019.05.05+3 in Herc.

ExtendedBG.c: In function ‘plugin_init’:
HPMHooking.h:49:11: error: ‘HPMHOOK_pre_clif_charnameack’ undeclared (first use                                                                              in this function)
   (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
           ^
ExtendedBG.c:6303:2: note: in expansion of macro ‘addHookPre’
  addHookPre(clif, charnameack, clif_charname_virt2);
  ^
HPMHooking.h:49:11: note: each undeclared identifier is reported only once for e                                                                             ach function it appears in
   (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
           ^
ExtendedBG.c:6303:2: note: in expansion of macro ‘addHookPre’
  addHookPre(clif, charnameack, clif_charname_virt2);
  ^
HPMHooking.h:49:51: error: expected ‘)’ before numeric constant
   (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
                                                   ^
ExtendedBG.c:6303:2: note: in expansion of macro ‘addHookPre’
  addHookPre(clif, charnameack, clif_charname_virt2);
  ^
HPMHooking.h:49:63: warning: left-hand operand of comma expression has no effect                                                                              [-Wunused-value]
   (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
                                                               ^
ExtendedBG.c:6303:2: note: in expansion of macro ‘addHookPre’
  addHookPre(clif, charnameack, clif_charname_virt2);
  ^
make[1]: *** [../../plugins/ExtendedBG.so] Error 1

eBG_woe_rankings

function to record KILL for MOBID_EMPELIUM, MOBID_BARRICADE, MOBID_S_EMPEL_1/2, and GUARDIAN is not yet implemented?

Overflow

Testing TD mode (only that one active), crashed the map server.
It was generated at line 1382 (ExtendedBG.c):

c = map->foreachinarea(eBG_warp_eos, tdb->areawarp->m, tdb->areawarp->x0, tdb->areawarp->y0, tdb->areawarp->x1, tdb->areawarp->y1, BL_PC, tdb->areawarp->index, x2, y2, tdb->areawarp->x3, tdb->areawarp->y3, (x2 == -1) ? 1 : 0);

The map parameter recived in foreachinarea should be int16, but in line 1382 int is used, generating a overflow (tdb->areawarp->m parameter).

Looking at the structs bg_areawarp_struct and bg_areaheal_struct, both are using int for map.

This is the crashlog:

Core was generated by `./map-server'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-19.el7.x86_64 libcom_err-1.42.9-12.el7_5.x86_64 libgcc-4.8.5-28.el7_5.1.x86_64 libselinux-2.5-12.el7.x86_64 libstdc++-4.8.5-28.el7_5.1.x86_64 mariadb-libs-5.5.56-2.el7.x86_64 openssl-libs-1.0.2k-12.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) BT FULL
#0  0x0000000000000000 in ?? ()
No symbol table info available.
#1  0x00007f476dcfaf78 in eBG_warp_eos (bl=0x7f476dacd0a8, ap=0x1)
    at ExtendedBG.c:1036
        tx = 84
        ty = 159
        j = 1
        x3 = 159
        y3 = 84
        bg_team = 15027584
#2  0x00000000004dd9d8 in bl_vforeach (func=0x7f476dacd0a8,
    blockcount=243269568, max=2147483647, args=0x7ffc73e54978) at map.c:557
        argscopy = {{gp_offset = 48, fp_offset = 48,
            overflow_arg_area = 0x7ffc73e54ae8,
            reg_save_area = 0x7ffc73e549f0}}
        returnCount = 0
#3  0x00000000004e3fd0 in map_vforeachinarea (
    func=0x7f476dcfadd0 <eBG_warp_eos>, m=-64, x0=84, y0=159, x1=6, y1=1125,
    type=1, ap=0x7ffc73e549d8) at map.c:1044
        returnCount = 0
        blockcount = 0
        apcopy = {{gp_offset = 48, fp_offset = 48,
            overflow_arg_area = 0x7ffc73e54ab8,
---Type <return> to continue, or q <return> to quit---
            reg_save_area = 0x7ffc73e549f0}}
#4  0x00000000004dd41c in map_foreachinarea (func=0x7f476dacd0a8, m=-64,
    x0=84, y0=159, x1=6, y1=1125, type=0) at map.c:1071
        returnCount = 0
        ap = {{gp_offset = 48, fp_offset = 48,
            overflow_arg_area = 0x7ffc73e54ab8,
            reg_save_area = 0x7ffc73e549f0}}
#5  0x00007f476dd05b17 in bg_timer_function (tid=1840042152, tick=243269568,
    id=84, data=6) at ExtendedBG.c:1382
        c = 0
        x2 = 1840042152
        operations = 3
        free = 252
        nd = 0x0
#6  0x000000000063da49 in do_timer (tick=139944759447720) at timer.c:498
        __func__ = "do_timer"
#7  0x0000000000408323 in main (argc=1, argv=0x7ffc73e54d58) at core.c:537
        next = 0
        retval = 6543392

need map gat rsw

héllo
no map in grf ?

"ebg_conq01",
"ebg_conq02",
"ebg_conq03",
"ebg_conq04",
"ebg_conq05",
"ebg_conq06",
"ebg_ctf",
"ebg_dom",
"ebg_eos",
"ebg_room",
"ebg_rush01",
"ebg_rush02",
"ebg_rush03",
"ebg_rush04",
"ebg_sc",
"ebg_td",
"ebg_tti",
need rsw gat gnd please

EBG_CONQ crashing the client

ebg_conq003 is crashing the client.
everytime I @joinbg the client closes.
I found that the cause was the invisible walls. If I play without the invisibles walls at the barricades, it works fine.
But if I enable the invisibles walls it crashes.
Didn't find a solution yet.

Npc Prontera

Npc Prontera don't show option to enter on BG. only show cancel.

Crash at map server

While doing a test something crashed the map server. The only mode active was Flavius CTF (all other modes where disabled)

This is the log:

#0  0x000000000062c840 in hplugin_data_store_validate (type=HPDT_MSD, 
    storeptr=0x7fff2464b358, initialize=false) at HPM.c:245 
No locals. 
#1  0x000000000062a83e in hplugins_getFromHPData (type=HPDT_MSD, pluginID=2, 
    store=0x6e61722073616820, classid=0) at HPM.c:306 
        i = 4942081 
#2  0x00007fe691606c6a in pdb_search (sd=0x2fe5c60, create=88) 
    at ExtendedBG.c:611 
        __func__ = "pdb_search" 
#3  0x00007fe69160e480 in send_bg_memberlist (sd=0x2fe5c60) 
    at ExtendedBG.c:3699 
        c = 6 
        psd = 0x2fe5c60 
#4  0x00007fe69161fb4e in bg_e_team_join (bg_id=273310640, sd=0x14e28390, 
    guild_id=0) at ExtendedBG.c:3266 
        pl_sd = 0x104a63b0 
        i = 0 
        data = 0xe28a5d0 
        bg_data_t = 0xc74b00 <clif> 
#5  0x00007fe691620264 in buildin_bg_e_join_team (st=0x7fe692a492b4) 
    at ScriptCommands.inc:408 
        sd = 0x14e28390 
        team_id = 2 
        guild_id = 2  

PS: VIRT_GUILD is NOT commented in eBG_common.h
PS2: Its a segmentation fault error

Command @leavebg issue

2 things about this command:

  1. When you use it while you are playing a BG, it makes you leave the battle group (the guild inside bg), but it doesnt warp you to your save point. You are still able to wander around the map and atack other players.

Looking further in the code, I found out that this if is not executed when using the command

// Warp back to savepoint
if (getmapflag(strcharinfo(PC_MAP), mf_battleground))
	warp("SavePoint", 0, 0);

(https://github.com/dastgirp/eBG/blob/master/server/npc/eBG/bg_common.txt#L765)

When I changed mf_battleground to MF_BATTLEGROUND, surprisingly it worked and I still dont know why. Accordingly to the documentation of getmapflag command, the flag constants should be lower case :/
(PD:By doing this, the console/terminal popups a warning saying MF_BATTLEGROUND should be lower case. Despite of this the command DOES work)

  1. Its more a suggestion than a issue. When you are queued to a BG it should make you leave the queue, but instead it only display the message "You are Not on Any Kind of BG".

I managed this by changing this:

OnLeaveBG:	// Replicate in bg_team_delete_pre (called when used .@leavebg/leaved bg via mapchange)	
	if (on_ebg() == false) {
		if (!.@dont_warn) {
			dispbottom(_("You are Not on Any Kind of BG"));
		}

to this:

OnLeaveBG:	// Replicate in bg_team_delete_pre (called when used .@leavebg/leaved bg via mapchange)	
	if (on_ebg() == false) {
		if (!.@dont_warn) {
			dispbottom(_("You are not on any kind of BattleGround"));
			if (queueremove(.queue[.@type], getcharid(CHAR_ID_ACCOUNT))){
				@BG_GlobalQueueID = 0;
				dispbottom(_("Leaving queue."));
			}
		}

Update ExtendedBG.c

i updated my Herc and when i was compile i got error

ExtendedBG.c: In function ‘area_flooritem’: ExtendedBG.c:2793:6: error: ‘struct map_interface’ has no member named ‘search_freecell’ map->search_freecell(NULL, m, &x, &y, range, range, 1); ^

to fix is olny change it

- map->search_freecell(NULL, m, &x, &y, range, range, 1);

for it

+ map->search_free_cell(NULL, m, &x, &y, range, range, 1);

i was try to make new Pull request, but i can't.

Emblem on head -- Solved

Client 2019 and Herc latest version.
image
the Emblem does not appear on the head of the ally and enemy.

BG stuffs

The woe and battleground stuffs don't work on any map, even on the BG and woe maps.

Issue with the BG Shop Points

Hi, i'm having problem with the BG Shop points, the shop which enable you to bought items when you play different types of Battlegrounds.

  • The NPC didn't notify you what Battleground have you played.
  • The NPC always show you that you can buy -1 maximum items.
  • You can buy the item in a loop, is not discount the current points.
OnInit:
	setarray .bg_common, 1,         // Enable BG Shop, 1=(Item from .bg_common[1]), 2=SupplyStore, 4=BG Items, 8=WoE Items
						 Red_Potion; // The item bought by 1 point of each BG (.bg_common[0] should have 1st bit set) (Default: eBG_Red_Box

imagen

Conquest Battleground is crashing the client

When I was testing the Conquest Mode, I realized that there was a castle which was crashing the client. Going deep into the error, I figured out that ebg_conq03 was the cause of the issue.
You can reproduce the error by setting at bg_common to read only the casttle "ebg_conq03" which is represented by number 2 at conquest rotate:

		// Conquest have 6 Maps, ebg_conq01~ebg_conq06
		// Index is from 0~5
		$bg_conquest_rotate += 2;
		if ($bg_conquest_rotate > 2)
			$bg_conquest_rotate = 2;
		$bg_conquest_attacker = rand(1, 2);
		break;

Then when you try to @joinbg, it will crash the game, the log of the crash is:

Module Name: C:\Users\User\Documents\Servidor\Patch 2018\2018-04-18bRagexeRE_patched.exe
Time Stamp: 0x5ad44028 - Mon Apr 16 03:18:16 2018

Exception Type: 0xc0000005

0x00a5b89f C:\Users\User\Documents\Servidor\Patch 2018\2018-04-18bRagexeRE_patched.exe
0x00a2433a C:\Users\User\Documents\Servidor\Patch 2018\2018-04-18bRagexeRE_patched.exe
0x009f56c5 C:\Users\User\Documents\Servidor\Patch 2018\2018-04-18bRagexeRE_patched.exe
0x009f561a C:\Users\User\Documents\Servidor\Patch 2018\2018-04-18bRagexeRE_patched.exe
0x00b0dff7 C:\Users\User\Documents\Servidor\Patch 2018\2018-04-18bRagexeRE_patched.exe
0x00b0f4f1 C:\Users\User\Documents\Servidor\Patch 2018\2018-04-18bRagexeRE_patched.exe
0x751f6359 C:\WINDOWS\System32\KERNEL32.DLL
0x77277c24 C:\WINDOWS\SYSTEM32\ntdll.dll
0x77277bf4 C:\WINDOWS\SYSTEM32\ntdll.dll

eax: 0x00000000 ebx: 0x00000001
ecx: 0x010bb020 edx: 0x0000012d
esi: 0x00000001 edi: 0x00000884
ebp: 0x0019ffec esp: 0x0019ffe4

stack 0019ffe4 - 001a03e4
0019FFE4 : FF FF FF FF D3 8F 29 77 00 00 00 00 00 00 00 00
0019FFF4 : C5 F3 B0 00 00 90 3D 00 00 00 00 00 41 63 74 78
001A0004 : 20 00 00 00 01 00 00 00 38 33 00 00 DC 00 00 00
001A0014 : 00 00 00 00 20 00 00 00 00 00 00 00 14 00 00 00
001A0024 : 01 00 00 00 07 00 00 00 34 00 00 00 7C 01 00 00
001A0034 : 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
001A0044 : 00 00 00 00 00 00 00 00 02 00 00 00 4E EF 26 1A
001A0054 : 98 02 00 00 44 00 00 00 E0 02 00 00 60 02 00 00
001A0064 : 00 00 00 00 BA 71 32 F3 40 05 00 00 4A 00 00 00
001A0074 : 8C 05 00 00 48 03 00 00 00 00 00 00 5B 49 59 2D
001A0084 : D4 08 00 00 32 00 00 00 08 09 00 00 00 03 00 00
001A0094 : 00 00 00 00 CD EA CE 32 08 0C 00 00 42 00 00 00
001A00A4 : 4C 0C 00 00 36 03 00 00 00 00 00 00 C8 5F 50 38
001A00B4 : 84 0F 00 00 5E 00 00 00 E4 0F 00 00 68 03 00 00
001A00C4 : 00 00 00 00 44 05 28 B1 4C 13 00 00 56 00 00 00
001A00D4 : A4 13 00 00 98 03 00 00 10 00 00 00 09 00 00 00

Launch Info
00A4 00A4 00A4 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000

Job : Novice

prontera.rsw 308 208

Renderer.cpp 700


Hexed used: 20131230
I also tried using a new client: 20180418


In both cases it will crash the game. Tha funny thing is that the other castles are working great.

Error import sql guild #1136 - Column count doesn't match value count at row 1

CREATE TABLE IF NOT EXISTS eBG_member (
guild_id INT(11) UNSIGNED NOT NULL DEFAULT '0',
account_id INT(11) UNSIGNED NOT NULL DEFAULT '0',
char_id INT(11) UNSIGNED NOT NULL DEFAULT '0',
hair TINYINT(6) UNSIGNED NOT NULL DEFAULT '0',
hair_color SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
gender TINYINT(6) UNSIGNED NOT NULL DEFAULT '0',
class SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
lv SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
exp BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
exp_payper TINYINT(11) UNSIGNED NOT NULL DEFAULT '0',
online TINYINT(4) UNSIGNED NOT NULL DEFAULT '0',
position TINYINT(6) UNSIGNED NOT NULL DEFAULT '0',
name VARCHAR(24) NOT NULL DEFAULT '',
PRIMARY KEY (guild_id,char_id),
KEY char_id (char_id)
) ENGINE=MyISAM;

REPLACE INTO guild VALUES (901,'Blue Team',150000,'General Guillaume',1,0,16,1,1,1,1,'Blue Team - eBG','Blue Team - eBG',0,0,NULL);
REPLACE INTO guild VALUES (902,'Red Team',150000,'Prince Croix',1,0,16,1,1,1,1,'Red Team - eBG','Red Team - eBG',0,0,NULL);
REPLACE INTO guild VALUES (903,'Green Team',150000,'Mercenary',1,0,16,1,1,1,1,'Green Team - eBG','Green Team - eBG',0,0,NULL);
REPLACE INTO guild VALUES (904,'Team 1',0,'Team 1',1,0,16,1,1,1,1,'Team 1 - eBG','Team 1 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (905,'Team 2',0,'Team 2',1,0,16,1,1,1,1,'Team 2 - eBG','Team 2 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (906,'Team 3',0,'Team 3',1,0,16,1,1,1,1,'Team 3 - eBG','Team 3 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (907,'Team 4',0,'Team 4',1,0,16,1,1,1,1,'Team 4 - eBG','Team 4 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (908,'Team 5',0,'Team 5',1,0,16,1,1,1,1,'Team 5 - eBG','Team 5 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (909,'Team 6',0,'Team 6',1,0,16,1,1,1,1,'Team 6 - eBG','Team 6 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (910,'Team 7',0,'Team 7',1,0,16,1,1,1,1,'Team 7 - eBG','Team 7 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (911,'Team 8',0,'Team 8',1,0,16,1,1,1,1,'Team 8 - eBG','Team 8 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (912,'Team 9',0,'Team 9',1,0,16,1,1,1,1,'Team 9 - eBG','Team 9 - eBG',0,0,NULL);
REPLACE INTO guild VALUES (913,'Team 10',0,'Team 10',1,0,16,1,1,1,1,'Team 10 - eBG','Team 10 - eBG',0,0,NULL);

REPLACE INTO guild_position VALUES (901,0,'Blue Team Leader',0,0);
REPLACE INTO guild_position VALUES (901,1,'Blue Team',0,0);
REPLACE INTO guild_position VALUES (902,0,'Red Team Leader',0,0);
REPLACE INTO guild_position VALUES (902,1,'Red Team',0,0);
REPLACE INTO guild_position VALUES (903,0,'Green Team Leader',0,0);
REPLACE INTO guild_position VALUES (903,1,'Green Team',0,0);
REPLACE INTO guild_position VALUES (904,0,'Team 1 Leader',0,0);
REPLACE INTO guild_position VALUES (904,1,'Team 1',0,0);
REPLACE INTO guild_position VALUES (905,0,'Team 2 Leader',0,0);
REPLACE INTO guild_position VALUES (905,1,'Team 2',0,0);
REPLACE INTO guild_position VALUES (906,0,'Team 3 Leader',0,0);
REPLACE INTO guild_position VALUES (906,1,'Team 3',0,0);
REPLACE INTO guild_position VALUES (907,0,'Team 4 Leader',0,0);
REPLACE INTO guild_position VALUES (907,1,'Team 4',0,0);
REPLACE INTO guild_position VALUES (908,0,'Team 5 Leader',0,0);
REPLACE INTO guild_position VALUES (908,1,'Team 5',0,0);
REPLACE INTO guild_position VALUES (909,0,'Team 6 Leader',0,0);
REPLACE INTO guild_position VALUES (909,1,'Team 6',0,0);
REPLACE INTO guild_position VALUES (910,0,'Team 7 Leader',0,0);
REPLACE INTO guild_position VALUES (910,1,'Team 7',0,0);
REPLACE INTO guild_position VALUES (911,0,'Team 8 Leader',0,0);
REPLACE INTO guild_position VALUES (911,1,'Team 8',0,0);
REPLACE INTO guild_position VALUES (912,0,'Team 9 Leader',0,0);
REPLACE INTO guild_position VALUES (912,1,'Team 9',0,0);
REPLACE INTO guild_position VALUES (913,0,'Team 10 Leader',0,0);
REPLACE INTO guild_position VALUES (913,1,'Team 10',0,0);

REPLACE INTO guild_skill VALUES (901,10000,1);
REPLACE INTO guild_skill VALUES (901,10001,1);
REPLACE INTO guild_skill VALUES (901,10002,1);
REPLACE INTO guild_skill VALUES (901,10003,3);
REPLACE INTO guild_skill VALUES (901,10004,10);
REPLACE INTO guild_skill VALUES (901,10005,0);
REPLACE INTO guild_skill VALUES (901,10006,5);
REPLACE INTO guild_skill VALUES (901,10007,5);
REPLACE INTO guild_skill VALUES (901,10008,5);
REPLACE INTO guild_skill VALUES (901,10009,5);
REPLACE INTO guild_skill VALUES (901,10010,1);
REPLACE INTO guild_skill VALUES (901,10011,3);
REPLACE INTO guild_skill VALUES (901,10012,1);
REPLACE INTO guild_skill VALUES (901,10013,1);
REPLACE INTO guild_skill VALUES (901,10014,1);

REPLACE INTO guild_skill VALUES (902,10000,1);
REPLACE INTO guild_skill VALUES (902,10001,1);
REPLACE INTO guild_skill VALUES (902,10002,1);
REPLACE INTO guild_skill VALUES (902,10003,3);
REPLACE INTO guild_skill VALUES (902,10004,10);
REPLACE INTO guild_skill VALUES (902,10005,0);
REPLACE INTO guild_skill VALUES (902,10006,5);
REPLACE INTO guild_skill VALUES (902,10007,5);
REPLACE INTO guild_skill VALUES (902,10008,5);
REPLACE INTO guild_skill VALUES (902,10009,5);
REPLACE INTO guild_skill VALUES (902,10010,1);
REPLACE INTO guild_skill VALUES (902,10011,3);
REPLACE INTO guild_skill VALUES (902,10012,1);
REPLACE INTO guild_skill VALUES (902,10013,1);
REPLACE INTO guild_skill VALUES (902,10014,1);

REPLACE INTO guild_skill VALUES (903,10000,1);
REPLACE INTO guild_skill VALUES (903,10001,1);
REPLACE INTO guild_skill VALUES (903,10002,1);
REPLACE INTO guild_skill VALUES (903,10003,3);
REPLACE INTO guild_skill VALUES (903,10004,10);
REPLACE INTO guild_skill VALUES (903,10005,0);
REPLACE INTO guild_skill VALUES (903,10006,5);
REPLACE INTO guild_skill VALUES (903,10007,5);
REPLACE INTO guild_skill VALUES (903,10008,5);
REPLACE INTO guild_skill VALUES (903,10009,5);
REPLACE INTO guild_skill VALUES (903,10010,1);
REPLACE INTO guild_skill VALUES (903,10011,3);
REPLACE INTO guild_skill VALUES (903,10012,1);
REPLACE INTO guild_skill VALUES (903,10013,1);
REPLACE INTO guild_skill VALUES (903,10014,1);

Requête SQL :

REPLACE INTO guild VALUES (901,'Blue Team',150000,'General Guillaume',1,0,16,1,1,1,1,'Blue Team - eBG','Blue Team - eBG',0,0,NULL)

MySQL a répondu: Documentation
#1136 - Column count doesn't match value count at row 1

quantity telma

hello and it is possible to modify the quantity of object that telma sells example 100 white potion for 1 badge

eBG_bg_rankings

sp_used, hp_potions and sp_potions records are wrong.
i tested on 2 players only.
How to test:
Each player use 1x White Potion and 1x Blue Potion inside "rush/woe" then logout to record. Upon checking the database it resulted to this:
player, sp_used, hp_potions, sp_potions
Player 1, 4227776, 1504064856, 35202984
Player 2: 4227776, 1504064856, 35191656

eBG Bug

For some reason the players that enter to the BG, isnt count as a player, so the BG can get their id and the BG ID.

For Example:

1.- Enter to CTF Battleground with two players.
2.- Take the flag, the console show:

[Warning]: bg_addpoints: Battleground ID is not valid(0).
[Debug]: Source (NPC): Guillaume Flag#1 at ebg_ctf (328,150)

3.- The announcer said: CTF - 0/35 vs 0/35 Playing
4.- You can't win the BG.

Originally posted by @Vaans in #12 (comment)

Memory manager: freed-data is changed

I don't know if this can be a real problem, but my console spam this messages:

(11/03/2019 02:51:34) [ Warning ] : npc_event: player's event queue is full, can't add event 'eBG_Conquest::OnPCDieEvent' !
(11/03/2019 02:51:34) [ Warning ] : npc_event: player's event queue is full, can't add event 'BOSS_Tierra::OnPCDieEvent' !
(11/03/2019 02:51:34) [ Warning ] : npc_event: player's event queue is full, can't add event 'eBG_Conquest::OnPCDieEvent' !
(11/03/2019 02:51:34) [ Warning ] : npc_event: player's event queue is full, can't add event 'BOSS_Tierra::OnPCDieEvent' !
(11/03/2019 02:51:39) [ Warning ] : npc_event: player's event queue is full, can't add event 'eBG_Conquest::OnPCDieEvent' !
(11/03/2019 02:51:39) [ Warning ] : npc_event: player's event queue is full, can't add event 'BOSS_Tierra::OnPCDieEvent' !
(11/03/2019 02:51:40) [ Warning ] : npc_event: player's event queue is full, can't add event 'eBG_Conquest::OnPCDieEvent' !
....
(11/03/2019 02:54:13) [ Warning ] : npc_event: player's event queue is full, can't add event 'BOSS_Tierra::OnPCDieEvent' !
(11/03/2019 02:54:32) [ Error ] : Memory manager: freed-data is changed. (freed in ExtendedBG.c line 761)
(11/03/2019 02:56:01) [ Warning ] : script:run_func: return without callfunc or callsub!
(11/03/2019 02:56:01) [ Debug ] : Source (NPC): Neutral Flag#eBG at ebg_eos (172,345)
(11/03/2019 02:59:02) [ Warning ] : script:run_func: return without callfunc or callsub!
(11/03/2019 02:59:02) [ Debug ] : Source (NPC): Neutral Flag#eBG at ebg_eos (166,308)
(11/03/2019 03:00:56) [ Warning ] : script:run_func: return without callfunc or callsub!
(11/03/2019 03:00:56) [ Debug ] : Source (NPC): Neutral Flag#eBG at ebg_eos (280,206)
(11/03/2019 03:01:38) [ Warning ] : script:run_func: return without callfunc or callsub!
(11/03/2019 03:01:38) [ Debug ] : Source (NPC): Neutral Flag#eBG at ebg_eos (152,80)
(11/03/2019 03:01:54) [ Warning ] : script:run_func: return without callfunc or callsub!
(11/03/2019 03:01:54) [ Debug ] : Source (NPC): Neutral Flag#eBG at ebg_eos (156,48)
(11/03/2019 03:02:22) [ Warning ] : script:run_func: return without callfunc or callsub!
(11/03/2019 03:02:22) [ Debug ] : Source (NPC): Neutral Flag#eBG at ebg_eos (181,137)
(11/03/2019 03:06:22) [ Error ] : bg_timer_stop: Timer with UID(0) not found.

Problem with the latest update

Hi, currently eBG it's outdated in the last update of herc.ws

ExtendedBG.c: In function 'bg_timer_function':
ExtendedBG.c:1213:4: error: too few arguments to function 'map->nick2sd'
    sd = map->nick2sd(tdb->npcs->name);
    ^
In file included from ExtendedBG.c:6236:0:
AtCommands.inc: In function 'atcommand_leader':
AtCommands.inc:268:2: error: too few arguments to function 'map->nick2sd'
  if ((pl_sd = map->nick2sd(message)) == NULL) {
  ^
AtCommands.inc: In function 'atcommand_reportafk':
AtCommands.inc:333:2: error: too few arguments to function 'map->nick2sd'
  if ((pl_sd = map->nick2sd(message)) == NULL) {
  ^
In file included from ExtendedBG.c:54:0:
ExtendedBG.c: In function 'plugin_init':
HPMHooking.h:49:53: warning: comparison of distinct pointer types lacks a cast [                                                                                                             enabled by default]
   (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
                                                     ^
ExtendedBG.c:6363:2: note: in expansion of macro 'addHookPre'
  addHookPre(clif, skill_damage, record_max_damage);
  ^
HPMHooking.h:49:53: warning: comparison of distinct pointer types lacks a cast [                                                                                                             enabled by default]
   (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
                                                     ^
ExtendedBG.c:6364:2: note: in expansion of macro 'addHookPre'
  addHookPre(clif, damage, record_max_damage2);
  ^
make[1]: *** [../../plugins/ExtendedBG.so] Error 1

Bugs

Flavius ​​CTF, Crystal taking skill damage.
Triple Hell, is not counting points.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.