-
Posts
381 -
Joined
-
Last visited
-
Days Won
28
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by BeWan
-
src/map/battle.cpp Find : { "at_timeout", &battle_config.at_timeout, 0, 0, INT_MAX, }, Add [ Below ] : { "afk_timeout", &battle_config.afk_timeout, 0, 0, INT_MAX, }, src/map/battle.hpp Find : int at_timeout;Add [ Below ] : int afk_timeout; Find : mail_show_status: 0 Add [ Below ] : // Set this to the amount of minutes afk chars will be kicked from the server.afk_timeout: 0
-
src/map/atcommand.c add this Find ACMD_FUNC(camerainfo){ nullpo_retr(-1, sd); if( message == nullptr || message[0] == '\0' ){ clif_camerainfo( sd, true ); return 0; } float range = 0; float rotation = 0; float latitude = 0; if( sscanf( message, "%f %f %f", &range, &rotation, &latitude ) < 3 ){ clif_displaymessage( fd, msg_txt( sd, 793 ) ); // Usage @camerainfo range rotation latitude return -1; } clif_camerainfo( sd, false, range, rotation, latitude ); return 0; } Add Below /*========================================== * @afk *------------------------------------------*/ ACMD_FUNC(afk) { nullpo_retr(-1, sd); sd->state.autotrade = 1; sd->state.block_action |= PCBLOCK_IMMUNE; if( battle_config.afk_timeout ) { int timeout = atoi(message); status_change_start(NULL, &sd->bl, SC_AUTOTRADE, 10000,0,0,0,0, ((timeout > 0) ? min(timeout,battle_config.afk_timeout) : battle_config.afk_timeout)*60000,0); } clif_authfail_fd(fd, 15); return 0; } Find: ACMD_DEFR(camerainfo, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE), Add Below ACMD_DEF(afk)
-
you can use @afk bro. mine is working
-
here is the example areamonster "ordeal_1-1",183,182,246,244,"[DS] BYORGUE",1839,10,"DS_HiddenNpc::Ondevildead"; Ondevildead: set [email protected],[email protected] - 1; if([email protected] == 15) mapannounce "ordeal_1-1","Guardian : 10 mobs to enter the 2nd round",0; if([email protected] == 5) mapannounce "ordeal_1-1","Guardian : 5 mobs to enter 2nd round",0; if([email protected] == 0) { mapannounce "ordeal_1-1",Guardian will enter to 2nd round",0; goto Ondevil2; } end;
-
Here the topic that you ask.
- 1 reply
-
- 1
-
-
ra_fild03 mapflag pvp ra_fild04 mapflag pvp check the tab/space. just copy paste and replace the map thats it.
-
i think you didnt install/applied it properly.
-
tried and tested. working 100% prontera,156,178,5 script BeWan Enchanter 100,{ mes "do you want to enchant your equipment ?"; next; [email protected] = select( .menu$ ) -1; if ( !getequipisequiped( .const_equip[[email protected]] ) || .const_equip[[email protected]] == EQI_HAND_L && getiteminfo( getequipid( EQI_HAND_L ),2 ) != 5 ) { mes "you did not equip an "+ .menu_name$[[email protected]] +" at the moment"; close; } [email protected] = getequipid( .const_equip[[email protected]] ); [email protected] = getequiprefinerycnt( .const_equip[[email protected]] ); [email protected] = getequipcardid( .const_equip[[email protected]], 0 ); [email protected] = getequipcardid( .const_equip[[email protected]], 1 ); [email protected] = getequipcardid( .const_equip[[email protected]], 2 ); [email protected] = getequipcardid( .const_equip[[email protected]], 3 ); if ( [email protected] == 255 || [email protected] == 254 ) { mes "I can't enchant a signed equipment"; close; } if ( [email protected] ) { mes "this armor has already enchanted"; close; } if ( countitem( 7773 ) < 50 || countitem( 7227 ) < 50 ) { mes "Sorry, you need 50 "+ getitemname( 7773 ) +" and 50 "+ getitemname( 7227 ) +" to enchant this armor."; close; } [email protected] = rand(.totalchance); while ( ( [email protected] = [email protected] - .rate[[email protected]] ) >= 0 ) [email protected]++; [email protected] = rand(0,5); delitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 0; getitem2 [email protected], 1,1, [email protected], 0, [email protected], [email protected], [email protected], 4700 + [email protected] * 10 + [email protected]; equip [email protected]; close; OnInit: setarray .rate, 55,50,45,40,35; // rate of getting +1 is 55%, +2 is 50% .... +10 is 10% ... setarray .const_equip, EQI_ARMOR, EQI_HAND_L, EQI_GARMENT, EQI_SHOES; setarray .menu_name$, "Armor", "Shield", "Garment", "Shoes"; .menu$ = implode( .menu_name$,":" ); while ( [email protected] < 10 ) { .totalchance = .totalchance + .rate[[email protected]]; [email protected]++; } end; } or if you want to use your script just edit this if (countitem([email protected][[email protected]]) < 1) { mes "[Aver De Dosh]"; mes "You do not have adequate quantity of ^0000FF"+getitemname ([email protected][[email protected]])+".^000000"; close; } to if ( countitem( 7773 ) < 50 || countitem( 7227 ) < 50 ) { mes "Sorry, you need 50 "+ getitemname( 7773 ) +" and 50 "+ getitemname( 7227 ) +" to enchant this armor."; close; }
-
This is the script or the topic i want to add facing like in the npc.
-
how to add facing option? thanks something like this <map>,<x>,<y>,<facing> it would look like this on script [email protected]_gid = fakeplayer( "prontera", 150, 150,<FACING>, [email protected]$, [email protected], [email protected], [email protected], @haircolor, [email protected], [email protected], [email protected], [email protected], .lowhead, [email protected], 0 ); i tried to edit the src part and compile got error.
-
its working. thank you
-
Anyone here have rental npc shop? like in the normal quest npc you can choose items and view the materials. Thanks in advance.
-
tested and working.. https://rathena.org/board/topic/82415-afk-command/
-
try it. and it's working tried and tested.
-
you dont really understand or get it? you can control the aspd by adjust this bonus bAspdRate,10; or bonus bAspdRate,90;
-
YES. by doing this. if(BaseClass==Job_Mage||BaseClass==Job_Archer) { bonus bAspdRate,10; or bonus bAspdRate,-10; } else if(BaseClass==Job_Swordsman||BaseClass==Job_Thief) { bonus bAspdRate,10; or bonus bAspdRate,-10; }