Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    73

Everything posted by Euphy

  1. Implemented by Cydh in r17414.
  2. The sizes don't work like that on rAthena; we have actual parameters. XD
  3. Here's a small example of instancing Prontera. 10,Instanced Prontera,3600,prontera,155,150,prontera prontera,150,150,0 script Instanced Prontera#a 101,{ set .@instance$, "Instanced Prontera"; if (instance_id()) { if (select("Enter Instance.:Cancel.") == 2) end; if (instance_enter(.@instance$) != 0) { mes "Instance entrance ^FF0000failed^000000."; close; } } else { if (select("Create Instance.:Cancel.") == 2) end; if (instance_create(.@instance$) < 0) { mes "Instance creation ^FF0000failed^000000."; close; } mes "Instance created."; close2; instance_enter(.@instance$); } end; OnInstanceInit: disablenpc instance_npcname(strnpcinfo(0)); end; } prontera,150,150,0 script Instanced Prontera#b 101,{ if (.Finished) { specialeffect2 EF_MVP; getitem 512,1; dispbottom "Congratulations!"; instance_destroy; end; } mes "Are you ready to begin?"; next; if(select("Yes.:No.") == 1) { mes "Good luck."; donpcevent instance_npcname("#ins_prontera_mobs")+"::OnEnable"; donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; } else mes "Take your time."; close; OnInstanceInit: enablenpc instance_npcname(strnpcinfo(0)); set .Finished,0; waitingroom "Click me!",0; end; OnDisable: disablenpc instance_npcname(strnpcinfo(0)); end; OnEnable: enablenpc instance_npcname(strnpcinfo(0)); set .Finished,1; end; OnInit: disablenpc strnpcinfo(0); end; } prontera,0,0,0 script #ins_prontera_mobs -1,{ OnEnable: set .@map$, instance_mapname("prontera"); set .@label$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; mapannounce .@map$,"Welcome to Instanced Prontera.",bc_all; sleep 4000; mapannounce .@map$,"Kill 50 monsters for a prize.",bc_all; sleep 1000; freeloop(1); for(set .@j,0; .@j<10; set .@j,.@j+1) { set .@size, query_sql("SELECT ID FROM `mob_db` WHERE left(Sprite, 4) != 'meta' AND left(Sprite, 2) != 'E_' AND ~Mode & 32 AND EXP > 0 AND MVP1id = 0 AND DropCardid > 4000 AND DropCardid < 5000 AND ID < 2000 ORDER BY rand() LIMIT 100", .@mob); for(set .@i,0; .@i<.@size; set .@i,.@i+1) monster .@map$,0,0,"--ja--",.@mob[.@i],1,.@label$; set .MyMobCount, .MyMobCount + .@size; } freeloop(0); end; OnMyMobDead: set .@map$, instance_mapname("prontera"); set .@label$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; if (.MyMobCount - mobcount(.@map$,.@label$) >= 50) { killmonster .@map$,.@label$; mapannounce .@map$,"Congrats. We're done here! Please return to me as soon as possible.",bc_all; donpcevent instance_npcname("Instanced Prontera#b")+"::OnEnable"; } end; }
  4. All script commands are documented in trunk/doc/script_commands.txt.
  5. It's actually pretty easy to do with my new version of the Endless Tower script (v2.2). Add the 'nomobloot' mapflag to all x@tower maps, which will disable drops from all monsters except MVPs. In the "OnMyMobDead" labels, create your desired drops with either 'makeitem' or simply 'getitem' (using any conditions you need).
  6. r17251: Multilanguage Support
  7. //= 1.3 Added missing OnMyMobDead labels. [Euphy]
  8. You'd have to add a condition in the source to check every message for the word "questitem", and trigger a label if found. It's a pretty terrible idea.
  9. Some more nominations: Status: Approved.
  10. This post has been transferred to the Bug Tracker: bugreport:7808 A script developer will look into this as soon as possible, and a response will be posted in the bug report. Thank you!
  11. You might be looking for the Charms mod.
  12. We've created a new badge, Innovator, because we feel these users also deserve credit for what they've done. Some new nominations: Status: Approved.
  13. Euphy

    WOE:TE

    That's correct, Rage. xP We don't have an English copy of the script yet, so we'll have to wait a while longer.
  14. 'getmapmobs' was replaced by the more flexible 'mobcount' command a very long time ago (see documentation). The script error is unrelated to your Gravity error. This script will not work with the latest revision.
  15. @P r o p e r t i e s: Your server's rates are too high to use the default reward calculations. Edit the modifiers here: setarray .Modifier[0], // Multipliers for Base Exp, Job Exp, and Zeny rewards. getbattleflag("base_exp_rate")/100,getbattleflag("job_exp_rate")/100,60;
  16. Euphy

    Renewal ATK

    Implemented in r17402. A huge thanks to Helvetica, Baalberith, and Akinari for the completion of this massive project!
  17. Euphy

    HP/SP formula

    Official HP/SP tables added in r17391.
  18. Don't forget to include a group level check, or your players can and will abuse the system.
  19. Read: trunk/doc/sample/npc_test_quest.txt
  20. This is disabled by default. set .ShowID,0; // Show item IDs? (1: yes / 0: no) There's no way to increase the size of the message window.
×
×
  • Create New...