Queue BG rewrite

Kubix

New member
Messages
150
Points
0
Location
Ukraine
Github
kubixservice
Emulator
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.

BG:

  1. Conquest
  2. Rush
  3. Flavius TD
Register - @joinbg or NPC, leave - @leavebg

This is queue BG with multiple windows checking by Gepard ID or IP.

Items:

  1. 56 BG consumable items (using only on BG) with boxes
  2. 56 WoE consumable items (using only on WoE) with boxes
  3. Item list
New script commands:

  1. bg_reward
  2. bg_team_reveal
  3. flooritem
  4. flooritem2xy
  5. bg_getitem
  6. bg_getkafrapoints
  7. bg_single
  8. bg_create_team (added OnPCDie and OnPCLogout events.)
Settings:

OnInit:
// ===== Multiple Windows checking by ?
// = 1 - Gepard Shield
// = 2 - IP
.MultipleCheck = 1;

// ===== BG Colors
setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500";

// ===== BG NPC & Arena Names
setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest";
setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest";

// ===== BG Player Amount
setarray .BG_Min[0], 2, 2, 2;
setarray .BG_Max[0], 30, 30, 30;

// ===== BG Locations
setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06";

// ===== BG X/Y Coordinates
setarray .BG_GuillX[0], 270, 390, 264;
setarray .BG_GuillY[0], 292, 10, 379;
setarray .BG_CroixX[0], 270, 10, 295;
setarray .BG_CroixY[0], 288, 290, 379;

bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99;
bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99;
// ===== Time to flood in seconds.
.Flood_Time = 180;
// ===== Enable debug mode?
.debug = false;

Sorry, not all instructions translated to English now.

Github: https://github.com/kubixservice/QueueBG

 
Last edited by a moderator:
why not plugin?

 
create to rAthena please
Check this:

https://rathena.org/board/topic/98306-bg-eamod/

@Kubix 

You will make a plugin of this?

default_lv.gif


 
I had a look at some of your other stuff and you are awesome! I tried setting this up on a local server but couldn't get it to work @_@ oh well

 
I had a look at some of your other stuff and you are awesome! I tried setting this up on a local server but couldn't get it to work @_@ oh well
You have some errors?
Hm yes, in bg_register.txt, the error I get in console is -

script error in file bg_register.txt line 38 column 60, parse_subexpr: need ':'

And this is line 38. " get_uniqueid() " is the part in question.

Code:
        if( qiget(.@qid1) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) || qiget(.@qid2) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) )
 
I had a look at some of your other stuff and you are awesome! I tried setting this up on a local server but couldn't get it to work @_@ oh well
You have some errors?
Hm yes, in bg_register.txt, the error I get in console is -

script error in file bg_register.txt line 38 column 60, parse_subexpr: need ':'

And this is line 38. " get_uniqueid() " is the part in question.

        if( qiget(.@qid1) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) || qiget(.@qid2) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) )
Set variable .MultipleCheck to 2.

How to use / install this? any guide or documentation?
Documentation on Git:

https://github.com/kubixservice/QueueBG/blob/master/src/bg_rewrite.c

 
Back
Top