Jump to content

AnnieRuru

Members
  • Posts

    2044
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by AnnieRuru

  1. http://rathena.org/board/topic/90589-annies-custom-bg/?p=236396 EDIT: wait, how come you still get the infinity loop ? I never has it ...
  2. line 1084 .... countitem(30016) < 1 countitem(30017) < 5.... also, you don't have to do that countitem(blah) >= xxx anymore just use ELSE statement if ( <condition> ) <true statement>; else <false statement>; if ( countitem(itemid) < num || ...... ) goto L_hoginc; else goto L_hogcomplete;
  3. usually if calling 2 same function on same variable, I would've set the variable instead[paste=qzoymzafaz2] kill a poring or a drops in ordeal_3-2, would cap the damage at 1000 this is a patch file =/search for the line no. around 1259 inside the battle_calc_damage function search for return damage;, add the lines with the + above it or you can just download the file rename it as max_damage.diff right click -> apply patch
  4. nope I tested it with @agitstart and @agitend my both characters in the same guild who has setcastledata "prtg_cas01", 1; can get the reward while both being in prontera
  5. yeah ... if you want a specific mob id, can also struct mob_data [paste=akwqjhz48c4] https://github.com/rathena/rathena/blob/master/src/map/map.h#L866
  6. prontera,157,180,5 script test 100,{ progressbar "", rand(3,6); if ( .used >= .used_limit ) end; .used++; .@rand = rand(.totalchance); while ( ( .@rand -= .itemchance[.@i] ) >= 0 ) .@i++; getitem .itemid[.@i], 1; if ( .used < .used_limit ) end; hideonnpc strnpcinfo(0); sleep 10000; // 10 seconds to reappear hideoffnpc strnpcinfo(0); .used = 0; end; OnInit: .used_limit = 3; // how many times used until npc is exhausted setarray .itemid, 501,502,503,504,505,506,507,508,509; setarray .itemchance, 10,10,10,10,3,10,10,10,10; for ( .@i = 0; .itemid[.@i]; .@i++ ) .totalchance += .itemchance[.@i]; end; }
  7. - script guild_reward_send -1,{ OnAgitEnd: switch ( gettime(4) ) { case 0: set .@gid, getcastledata("prtg_cas03",1); break; case 2: set .@gid, getcastledata("prtg_cas01",1); break; case 4: set .@gid, getcastledata("prtg_cas02",1); break; default: end; } set .@nb, query_sql( "select account_id from `char` where guild_id = "+ .@gid +" and online = 1", .@aid ); for ( set .@i, 0; .@i < .@nb; set .@i, .@i +1 ) { attachrid .@aid[.@i]; getitem 7539,15; dispbottom "You received 15 Poring Coins for his victory in the War of Emperium."; // google translator } end; } this one should work with eathena
  8. Brian *makeitem2 command too I want to make a script where a signed item is dropped on the floor http://rathena.org/board/topic/73454-how-to-do-skull-will-be-auto-loot-on-pvp/?p=152141
  9. set .@nb, query_sql( "select account_id from `char` where guild_id = "+ .@gid +" and online = 1", .@aid );weird, I saw you fixed set .@guild_id, part ... but didn't fixed the .@nb part ? for ( .@i = 0; .@i < .@nb; .@i++ ) { ---> for ( set .@i, 0; .@i < .@nb; set .@i, .@i +1 ) { are you using brathena ?
  10. recently script section seems dead, so I do this [paste=2dimhrbmzv3] actually, about the part where the potions build up in stock why not just gives to another online character instead of get it build up in a server variable ?
  11. ... do you actually play DOTA ? isn't DOTA are supposed to announce double kill for 2 consecutive kills ? in the screenshot, you killed Tested twice without getting yourself killed within 18 seconds, thus you owned a double kill
  12. https://github.com/rathena/rathena/blob/master/src/map/pc.c#L2729 it means you have an item bonus that is not define at the constant https://github.com/rathena/rathena/blob/master/db/const.txt#L479 all these are constant for example: you can actually do bonus 13, 10; instead of bonus bstr, 10; both of them works the same for your error message you must have used a wrong constant name, which are not defined in the const.txt example like bonus batkkrange, 5; <-- batkkrange is not a defined constant, its a typo, thus it is read as 0 so try to look for an item that has something like bonus <something>, 50;
  13. doc/woe_time_explanation.txt npc/guild/agit_controller.txt change AgitStart into enablenpc change AgitEnd into disablenpc
  14. original topic http://rathena.org/board/topic/75477-custom-bg/?p=176806 fix the OnredDead into OnRedDead [paste=1ta6tj3irboh] though, I don't think this script can occur an infinite loop 3*20*2 = 120 loops maximum even if you set your team to 20 players to start when and how does it occur an infinite loop ?
  15. try this EDIT: fixed the 5 minute to join inside config [paste=29oz1mkt0846] I've also included the GM can manually on/off the event, well ... I did it because of debug purpose =/
  16. usually I would've say something like but today I feel generous atm [paste=2f5wgbqj3niz]
  17. http://www.eathena.ws/board/index.php?s=&showtopic=237765&view=findpost&p=1296606 the script in the best answer doesn't have *soundeffect script command so pick my topic from eathena forum =/
  18. just to be sure, do you want the team creation to be randomize ? I can also make this script runs only 1 waitingroom, then randomize the team creation player couldn't able to decide to go into which team, the script randomize that
  19. I remember this issue as far as I can recall and the developers has no intention to change this simply because, if you die in pvp (in pk) maps, you are supposed to drop skulls in any circumstances if you want to make player drop skulls only killed by players in certain maps only you can control it with scripts
  20. my script has already able to on/off this event by typing @devilsquare on @devilsquare off there's no need for you to add your custom menu already disablenpc "Reward NPC#DS"; OnClock0400: // yeah I know about OnMinute ... it just that more people knows better using OnClock OnClock1000: OnClock1600: OnClock2200: .start = 1; disablenpc "Exit#DS";change into OnClock0400: // yeah I know about OnMinute ... it just that more people knows better using OnClock OnClock1000: OnClock1600: OnClock2200: if ( .start ) end; // I just fixed this recently .start = 1; disablenpc "Reward NPC#DS";
  21. let me guess ... you are trying to write an utility script which search for all characters with a certain mvp card ID if the player has the mvp card ID, the gm can then proceed to remove the card I know how to tackle this its better to separate your search with online characters and offline characters in online characters, use addrid and getinventorylist in offline characters, use query_sql then there's no need the hassle to update the table which might overwrite the value wrongly when the server do an interval character update EDIT: I just recall when I worked on a server ... that admin used @ban character temporary when he suspect that player is cheating then @unban when its done this trick might work too ... lol
  22. http://rathena.org/board/tracker/issue-8429-bug-statpoint/ I thought it just fixed ?
  23. - script skjdfhksdjf -1,{ OnPCLoginEvent: if ( joblevel > 120 ) { .@skpoint_deduct = joblevel - 120; set joblevel, 120; resetskill; set skillpoint, skillpoint - .@skpoint_deduct; } end; }
  24. ok, its not fix yet when I click up on your post, for some reason it display from 0 into 3 properly but when I refresh the page, it turn back into 0 again honestly, why hercules forum doesn't have this bug, but this forum has ? I can't think of any possible reason ... @Olrox ROFL !! emistry would like to hear about this xD
  25. lol xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{}just put them in a single line .... actually, do you know you can always use *callfunc script command in a item to call for a npc script, it works with item database *bonus only doevent/addtimer doesn't work though
×
×
  • Create New...