Jump to content

AnnieRuru

Script Developers
  • Content Count

    1677
  • Joined

  • Last visited

  • Days Won

    245

Everything posted by AnnieRuru

  1. OK I know what's the problem now https://github.com/HerculesWS/Hercules/blob/master/db/const.txt#L3324 it will be YOUR OWN PROBLEM for not update the const.txt file change this line if ( ( .@ins = instance_create( "Raid Dungeon", getcharid(1), IOT_PARTY ) ) < 0 ) {into thisif ( ( .@ins = instance_create( "Raid Dungeon", getcharid(1), 2 ) ) < 0 ) {.. . EDIT: honestly I feel something fishy about this instance script in hercules ... why people always getting different result from my test server ? perhaps some of you should try in a clean hercules test server before put it on a live server one
  2. 1. rathena should be easier to transport your customs than hercules because they have import folder for db... hercules doesn't has2. if you hire someone to do it, it will that person responsibility to do it according to your taste .. isn't it ?
  3. [Error]: script:op_2: invalid data for operator C_NE[Debug]: Data: string value="prt_fild04"[Debug]: Data: number value=0[Debug]: Source (NPC): kjhdkfjsf (invisible/not on a map)
  4. @Dastgir Pojee well, rathena forum can support 3ceam and eathena users so ... hercules forum should also can support rathena users Mysterious made that 'Which Emulator you are using' so in this forum we can support them as long they are using *athena platform @ThyroDree hire someone in paid section and let him do the upgrade for you (probably in rathena forum) definitely not me, try somebody else
  5. this part is screw up OnPCDieEvent:if(strcharinfo(3) == "guild_vs3") { dispbottom "You will respawn in 3 Seconds."; sleep2 3000; atcommand "@alive"; atcommand "@heal"; warp "guild_vs3",0,0; atcommand "@speed 50"; end;} // items not allowed in PVP NoPotion setarray .NoPotion_ids[0], 607, 608; // // items not allowed in Non Donator PVP// setarray .NoDonator_ids[0], 2410, 1530;// end;it should beOnPCDieEvent: if ( strcharinfo(3) == "guild_vs3" ) { dispbottom "You will respawn in 3 seconds"; sleep2 3000; warp "guild_vs3", 0,0; percentheal 100,100; atcommand "@speed 50"; } end;OnInit: // items not allowed in PVP NoPotion setarray .NoPotion_ids[0], 607, 608; // items not allowed in Non Donator PVP// setarray .NoDonator_ids[0], 2410, 1530; end;and ...I wonder if you guys can actually do this ...
  6. if ( !'lives ) {instance_announce -1, "Your party has used up all the lives", bc_map;.@map$ = strcharinfo(3);killmonsterall .@map$;sleep 5000;mapwarp .@map$, .map$, .x, .y;} if the party has no more lives, the map will be cleaned from monsters and then after 5 seconds, everyone is warp out to where the register npc is 2. change mes "you need to make a party of MAXIMUM of 15Members and a MINIMUM of 10Members.. so i can allow you to dive inside."; into mes "you need to make a party of EXACTLY "+ .register_min +" members ... so i can allow you to dive inside."; problem solve I think you should just show your edited script instead of keep saying bug bug bug ... I don't know what are the things that you have edited
  7. have to add another script command *checkmes to check the player is having a npc dialog or not
  8. have some common sense if you are using rathena .... http://rathena.org/board/topic/84892- rathena have addrid like 9 months ago ! like I said, I'm not gonna support those people using old emulator
  9. I can't reproduce thisinstance_set_timeout 0, 1, .@ins;what is your value here ?
  10. isn't this just plain stu*** dbremap_zone_db.conf can already do that ...
  11. - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { .@killer = getcharid(3); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { .@count++; } } } if ( .@count < 4 ) .@itemget = 1; else if ( .@count < 8 ) .@itemget = 2; else if ( .@count < 12 ) .@itemget = 3; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( .@killer == getcharid(3) ) { getitem .itemid, 10; } else if ( strcharinfo(3) == "guild_vs2" && checkidle() < 10 ) { // must not idle more than 10 seconds getitem .itemid, .@itemget; } } } } end;}.. the rest is impossible . . currently there is only 1 player can attach to the scriptthere is no way to get 2 players trigger the kills its either the one who landed last hit ... or the one dealt the most damage, depends on mob_npc_event_type in confbattlemonster.conf and very exploitable script =/
  12. you should test this and see they work or not ... prontera,155,185,5 script kjdfkjsf 100,{// sc_start SC_ASPERSIO, 10000, 0; sc_start SC_ENCHANTPOISON, 10000, 0;}
  13. just tested alter table `char` add kills int(11) unsigned not null default 0 after unban_time, add death int(11) unsigned not null default 0 after kills, add index (kills), add index (death);select * from `char`;select name, kills, death, kills/death, kills/(death+1) from `char` order by kills desc;select name, kills, death, kills/death, kills/(death+1) from `char` order by death asc;select name, kills, death, kills/death, kills/(death+1) from `char` order by kills/death desc;select name, kills, death, kills/death, kills/(death+1) from `char` order by kills/(death+1) desc;the last one ... is the one that we should useso just make the ratio as +1 to death only when calculating, not on the ladder itself btw ... I'm not interested in making this script ... just too big rather just update my sql dota ladder script
  14. yeah ... in theory it should just tested it doesn't work, dunno why hmm ... that's one thing I don't like about addrid ... - script lbvlckbvs -1,{OnInit:while (1) {getmemberaid ALL_CLIENT;for ( .@i = 0; .@i < $@onlinecount; .@i++ ) {attachrid $@onlineaid[.@i];addtimer 1, "bk::OnWhisperGlobal";}detachrid;sleep 3000;}end; // shouldn't reach} this one works ... hmm ... . . - script lbvlckbvs -1,{OnInit:initnpctimer;end;OnTimer1000:addrid 0, 1;addtimer 1, "bk::OnWhisperGlobal";initnpctimer;} this one ... if the player purposely wait until next message pop up, then that player will not run another npc script ... very weird bug, there is no error on the map-server.exe either .. . . ok got it, this one works, tested - script lbvlckbvs -1,{OnMinute00:OnMinute05:OnMinute10:OnMinute15:OnMinute20:OnMinute25:OnMinute30:OnMinute35:OnMinute40:OnMinute45:OnMinute50:OnMinute55:addrid 0, 1;if ( checkvending() ) end;addtimer 1, "bk::OnWhisperGlobal";end;}
  15. I wonder why I miss this topic anyways, I rather build up a temp array to hold the online party members rather to keep randomizing ... prontera,155,185,0 script Sample 100,{ if ( !getcharid(1) ) end; getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { .@aid[.@c] = $@partymemberaid[.@i]; .@c++; } } mes "Random member :"+ rid2name( .@aid[ rand( .@c ) ] ); close;}
  16. - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { .@count++; } } } if ( .@count < 4 ) .@itemget = 1; else if ( .@count < 8 ) .@itemget = 2; else if ( .@count < 12 ) .@itemget = 3; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { getitem .itemid, .@itemget; } } } } end;}wonder whats so special about this script and, in case you don't know, an alchemist can summon homunculus and set it to aggressive afk inside there as many as possible and get maximum income like this, kinda exploitable
  17. I always want to ask this ... how do you calculate kill/death ratio ? because if the player has 3 kills, and 0 death 3/0 = infinity it will return NULL value in SQL table I always insert the death as 1 even if the death is actually 0 when made the 1st kill or insert death as 2 if the 1st death to prevent the calculation of infinite value 3/1 = 3 but then it will show the improper value of the person's death ..
  18. - script asdf -1,{OnWhisperGlobal: dispbottom "test"; end;}whisper system should work in hercules ...try this ? if you are using rAthena then that's easy it says ... npc:bk to send a botkiller message to other player so - script lbvlckbvs -1,{OnInit: while (1) { addrid 0, 1; addtimer 1, "bk::OnWhisperGlobal"; sleep 5 * 60 * 1000; } end; // shouldn't reach}didn't test but should work
  19. I also got the same, hahaha --------------------------- ReadAnimatedEmitterInfoz --------------------------- attempt to call a nil value --------------------------- OK ---------------------------
  20. just use bindatcmd simple - script slslfkdsscxvxc -1,{OnInit: bindatcmd "dealer", strnpcinfo(0)+"::Onaaa"; end;Onaaa: callshop "blahblah", 1; end;}- shop blahblah -1,678:-1,608:-1btw, if callshop with type 2, it ask you to sell items instead of want to buy it =/
  21. prontera,156,187,6 script dfkjhsdfkjs 100,{ query_sql "select balance from cp_credits where `account_id` = "+ getcharid(3), .@points; if ( .@points >= 1 ) { if ( !checkweight( 7608, .@points ) ) { dispbottom "You can't carry enough "+ getitemname(7608); end; } query_sql "update cp_credits set balance = balance -"+ .@points +" where account_id = "+ getcharid(3); getitem 7608, .@points; } else dispbottom "You don't have anymore voting points"; end;}I always forgot the *checkweight command =/
  22. party.c base_exp/=c; job_exp/=c; zeny/=c; if (battle_config.party_even_share_bonus && c > 1) { double bonus = 100 + battle_config.party_even_share_bonus*(c-1); if (base_exp) base_exp = (unsigned int) cap_value(base_exp * bonus/100, 0, UINT_MAX); if (job_exp) job_exp = (unsigned int) cap_value(job_exp * bonus/100, 0, UINT_MAX); if (zeny) zeny = (unsigned int) cap_value(zeny * bonus/100, INT_MIN, INT_MAX); }remove this chunk of code and recompile basically this part of code calculate the exp gain for each party member ( 100% / number of party members ) so just don't have to execute this part to make it 100%
  23. prontera,156,187,6 script dfkjhsdfkjs 100,{ query_sql "select balance from cp_credits where `account_id` = "+ getcharid(3), .@points; if ( .@points >= 1 ) { query_sql "update cp_credits set balance = balance -1 where account_id = "+ getcharid(3); getitem 7608, 1; } else dispbottom "You don't have anymore voting points"; end;}
  24. hohoho ... I Approve the topic in eAthena xD
  25. AnnieRuru

    @Woe

    //===== Additional Comments: ================================= //= Be sure to disable the default agit controllers! //== npcguildagit_controller.txt //== npcguild2agit_start_se.txt //============================================================ I think you didn't disable those 2 npcs ...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.