Jump to content

  •  

jupeto

Member Since 25 Aug 2016
Offline Last Active Jun 04 2017 01:16 PM
-----

Posts I've Made

In Topic: Hercules Battlegrounds

04 May 2017 - 09:05 PM

 

 

Are these normal?

Spams announcement?
bgannounce.jpg

 

rush_casXX map? I did recache mapcache.dat

 

hercwarning.jpg

 

The announces are on purpose, you can change the timing in the bg_common.txt script.

 

at which part?


bg_common.txt line 151

// Rotate every n seconds.
OnTimer5000:

Being 5000 the miliseconds of rotation and announces

I see, haha I thought there were some kind of a config or something.... thanks for pointing that out for me :D much appreciated


In Topic: Hercules Battlegrounds

04 May 2017 - 06:14 PM

Are these normal?

Spams announcement?
bgannounce.jpg

 

rush_casXX map? I did recache mapcache.dat

 

hercwarning.jpg

 

The announces are on purpose, you can change the timing in the bg_common.txt script.

 

at which part?


In Topic: Hercules Battlegrounds

04 May 2017 - 03:16 PM

Are these normal?

Spams announcement?
bgannounce.jpg

 

rush_casXX map? I did recache mapcache.dat

 

hercwarning.jpg


In Topic: Party Member Base Levels

01 May 2017 - 03:30 PM

Thank you for your support, I did manage to get those 3 types already... :D


In Topic: Party Member Base Levels

01 May 2017 - 01:33 PM

[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: __setr (2 parameters):
[Debug]: Data: variable name='.@blvl' index=0
[Debug]: Data: param name='BaseLevel' type=11
[Debug]: Source (NPC): SamplePartyBaseLevel at prontera (144,282)
[Warning]: script_get_val: cannot access player variable 'BaseLevel', defaulting to 0

I only use this code

 


        getpartymember(getcharid(CHAR_ID_PARTY));

        for (.@i = 0; .@i < $@partymembercount; ++.@i)
        {
            dispbottom($@partymemberaid[.@i] + " : " + $@partymembercid[.@i] + " (" + $@partymembername$[.@i]) + ")";
        }
        close;

the result of each account id and character id is 0, maybe that's why your code doesn't work... but the member name is OK

EDIT 2:

 

I wonder why the code below works, I need to specify all 3 types to get the account id, character id, and character names
 


        getpartymember(getcharid(CHAR_ID_PARTY), 0);
        getpartymember(getcharid(CHAR_ID_PARTY), 1);
        getpartymember(getcharid(CHAR_ID_PARTY), 2);
        .@aid = getcharid(CHAR_ID_ACCOUNT);

        for (.@i = 0; .@i < $@partymembercount; ++.@i)
        {
            if (isloggedin($@partymemberaid[.@i], $@partymembercid[.@i]))
            {
                detachrid;
                attachrid($@partymemberaid[.@i]);
                .@blvl[.@i] = BaseLevel;
                detachrid;
                attachrid(.@aid);
                dispbottom("" + $@partymembername$[.@i] + ": Level " + .@blvl[.@i] + "");
            }
        }
        close;