Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/15/17 in all areas

  1. Hello. This is a rough version of the official wave mode forest instance which I made for my upcoming episode 15.1 pre-renewal server. It's a custom implementation which is mostly official except for a few tweaks to dialogue and some quirks due to limitations in rAthena that I found while scripting it. The two main differences are the fact that you can't inflict status changes on monsters in rAthena during the unitwalkto state because they will just keep moving even though they're frozen or stone cursed so I made them status immune, and they have the original speed of the original enemies they correspond to(unlike on iRO where they're a bit slower and they sometimes stop walking for a while). I'm attaching the script itself because it's a bit big to paste. To make it work you need to make a small modification to script.c to make unitkill, unitwalk and unitwalkto allow a GID of 0 to reference the activator of OnTouchNPC triggers. I'm attaching a unified .diff for it. Add/replace this in mob_db.txt: 2401,G_PORING,Poring,Poring,1,60,1,0,0,1,8,9,2,5,6,1,1,0,6,5,10,12,1,3,21,0x4200061,400,1872,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 [...] 2569,G_ANOPHELES,Anopheles,Anopheles,95,7238,1,0,0,1,242,260,7,10,64,60,42,58,88,42,10,12,0,4,64,0x4200061,170,1084,2304,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2570,G_BREEZE,Breeze,Breeze,92,6755,1,0,0,2,379,431,83,32,75,101,46,35,66,55,10,12,1,0,64,0x4200061,100,140,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2571,G_BUTOIJO,Butoijo,Butoijo,88,7524,0,0,0,1,358,460,77,12,50,65,30,30,106,44,10,12,2,6,43,0x4200061,200,1100,483,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2572,G_CARAMEL,Caramel,Caramel,25,518,1,0,0,1,67,76,39,0,19,10,15,10,32,5,10,12,0,2,22,0x4200061,200,1604,840,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2573,G_CHONCHON,Chonchon,Chonchon,5,57,1,0,0,1,11,14,27,0,13,4,4,0,8,5,10,12,0,4,24,0x4200061,200,1076,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2574,G_CIVIL_SERVANT,Civil Servant,Mao Guai,89,5292,1,0,0,2,276,337,90,56,67,76,40,65,62,30,10,12,1,2,44,0x4200061,200,1257,528,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2575,G_COCO,Coco,Coco,38,836,1,0,0,1,71,82,37,0,22,13,30,20,38,10,10,12,0,2,22,0x4200061,150,1864,864,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2576,G_CREAMY,Creamy,Creamy,23,378,1,0,0,1,61,62,28,20,16,1,1,0,1,20,10,12,0,4,24,0x4200061,150,1136,720,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2577,G_FABRE,Fabre,Fabre,6,72,1,0,0,1,12,15,24,0,12,5,5,5,12,5,10,12,0,4,22,0x4200061,400,1672,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2578,G_HORN,Horn,Horn,32,705,1,0,0,1,64,75,52,8,10,12,36,25,21,35,10,12,1,4,22,0x4200061,200,1528,528,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2579,G_HYLOZOIST,Heirozoist,Hylozoist,102,12000,1,0,0,1,268,349,101,68,97,67,72,88,69,60,10,12,0,6,47,0x4200061,155,741,1536,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2580,G_KAHO,Kaho,Kaho,98,7045,1,0,0,1,504,728,106,55,81,61,55,65,66,73,10,12,1,6,83,0x4200061,150,1700,1000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2581,G_LUDE,Lude,Lude,101,11574,1,0,0,2,218,296,90,53,97,38,55,82,69,55,10,12,0,1,29,0x4200061,150,890,960,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2582,G_LUNATIC,Lunatic,Lunatic,3,55,1,0,0,1,11,12,18,0,10,3,3,0,8,5,10,12,0,2,60,0x4200061,200,1456,456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2583,G_MARTIN,Martin,Martin,39,1056,1,0,0,1,70,88,58,19,25,29,28,15,30,10,10,12,0,2,42,0x4200061,300,1480,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2584,G_MINERAL,Mineral,Mineral,96,8300,1,0,0,1,578,635,127,23,70,61,40,50,62,50,10,12,0,0,40,0x4200061,250,648,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2585,G_MOLE,Mole,Holden,85,6228,1,0,0,9,260,309,82,16,53,65,31,30,48,31,10,12,0,2,42,0x4200061,300,1400,960,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2586,G_NERAID,Neraid,Nereid,98,9550,1,0,0,1,196,267,100,37,97,45,60,30,69,50,10,12,0,2,22,0x4200061,200,776,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2587,G_OBSIDIAN,Obsidian,Obsidian,97,10088,1,0,0,1,590,670,129,37,84,38,40,60,53,50,10,12,0,0,42,0x4200061,350,720,864,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2588,G_PITMAN,Pitman,Pitman,90,7208,1,0,0,1,182,242,104,48,78,56,45,35,50,30,10,12,2,1,42,0x4200061,180,960,336,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2589,G_POPORING,Poporing,Poporing,30,524,1,0,0,1,74,94,36,17,17,26,20,18,36,5,10,12,1,3,25,0x4200061,300,1672,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2590,G_ROCKER,Rocker,Rocker,15,185,1,0,0,1,19,24,16,3,12,18,8,10,17,5,10,12,1,4,22,0x4200061,200,1864,864,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2591,G_SAVAGE,Savage,Savage,59,2301,1,0,0,1,172,195,126,3,56,21,54,10,47,15,10,12,2,2,42,0x4200061,150,1960,960,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2592,G_SIORAVA,Siorava,Siorava,87,6500,1,0,0,1,450,660,20,40,10,40,66,70,67,10,10,12,0,0,21,0x4200061,250,1536,1296,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2593,G_SIROMA,Siroma,Siroma,98,11910,1,0,0,1,389,489,64,38,83,43,50,70,80,60,10,12,0,0,61,0x4200061,180,432,648,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2594,G_SNOWIER,Snowier,Snowier,103,13934,1,0,0,2,510,592,121,47,91,61,67,45,61,55,10,12,2,0,41,0x4200061,220,936,1020,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2595,G_STAINER,Stainer,Stainer,21,365,1,0,0,1,65,74,22,25,10,10,24,0,39,15,10,12,0,4,24,0x4200061,200,1688,1188,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2596,G_STAPO,Stapo,Stapo,95,8805,1,0,0,1,364,415,129,36,20,46,25,35,53,30,10,12,0,0,42,0x4200061,300,936,792,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2597,G_STEEL_CHONCHON,Steel Chonchon,Steel Chonchon,48,1199,1,0,0,1,77,112,57,20,30,62,20,10,56,10,10,12,0,4,24,0x4200061,150,1076,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2598,G_UNGOLIANT,Ungoliant,Ungoliant,94,17070,1,0,0,1,689,733,108,28,71,70,58,43,92,38,10,12,2,4,45,0x4200061,350,420,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2599,G_WILD_RIDER,Wild Rider,Wild Rider,95,33300,0,0,0,1,1320,1848,480,22,100,100,30,70,100,30,10,12,2,5,41,0x4200061,150,432,432,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2600,G_WOLF,Wolf,Wolf,45,1219,1,0,0,1,80,91,55,3,27,24,30,15,33,5,10,12,1,2,22,0x4200061,200,1054,504,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2601,G_YOYO,Yoyo,Yoyo,38,898,1,0,0,1,63,74,40,0,20,11,34,20,19,10,10,12,0,2,22,0x4200061,200,1054,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2602,G_ZIPPER_BEAR,Zipper Bear,Zipper Bear,90,6620,1,0,0,1,410,467,130,40,68,51,50,35,58,20,10,12,1,2,27,0x4200061,155,780,1008,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 And add this to instance_db.txt: <Unused ID>,Wave Mode Forest,3600,300,1@def01,46,64 It should now be working assuming that you compiled your server correctly and you've put everything in the right place Screenshots: http://imgur.com/a/TprVU Most of you probably don't know me but I used to develop for eAthena a long time ago and I'm coming back to work on pservers. I will be making a lot more things both script- and sourcewise and sharing them with the public soon. My goal is to make rAthena a little bit more update until leaked scripts can be implemented for everything. script.diff WaveMode.txt
    1 point
  2. You need to add IG_LPumpkinBox to your db/const.txt file like. IG_LPumpkinBox 5555 IG_LPumpkinBox,57002,2 getrandgroupitem(IG_LPumpkinBox,1); Alternatively you can just declare an ID instead of a variable in the item_group_db.txt as well like. 5555,57002,2 Then call it with getrandgroupitem like. getrandgroupitem(5555,1); This helps when trying to keep everything in an import file.
    1 point
  3. prontera,155,179,2 script Debug 1001,{ OnTouch: //set @count, 0; mes "[npc name]"; switch(@count){ case 0:{ mes "Please, do not bother me. I am in pain."; @count++; close; }break; case 1:{ mes "Can you not see I am grieving? Begone."; @count++; close; }break; case 2:{ mes "I have no quarrel with you stranger, LEAVE ME BE."; @count++; close; }break; case 3:{ if(countitem(578) >= 80){ delitem 578,80; getitem 19620,1; mes "Congrats!"; @count++; close; }else{ mes "You don't have what I want."; close; } }break; } mes "Im sorry for being rude, please, come near me. Would you like to hear my melancholic tale?"; close; end; } Was the OnInit, @count it's on player, can't be executed at OnInit Now I suppose that will runs everything ok.
    1 point
  4. prontera,155,179,2 script Debug 1001,{ OnTouch: announce @count, 0; mes "[npc name]"; switch(@count){ case 0:{ mes "Please, do not bother me. I am in pain."; @count++; close; }break; case 1:{ mes "Can you not see I am grieving? Begone."; @count++; close; }break; case 2:{ mes "I have no quarrel with you stranger, LEAVE ME BE."; @count++; close; }break; case 3:{ if(countitem(578) >= 80){ delitem 578,80; getitem 19620,1; mes "Congrats!"; @count++; close; }else{ mes "You don't have what I want."; close; } }break; } mes "Im sorry for being rude, please, come near me. Would you like to hear my melancholic tale?"; close; end; OnInit: set @count, 0; end; }
    1 point
  5. I no longer work on RO. It's been a few years, however, I'm sure there are edits to my original script out there, or, you could potentially post in the script request section. I apologize.
    1 point
  6. You're attaching a timer to a player, that's where the issue is. A player cannot run two scripts at the same time, so it stops the first script (the one where the player talks to an NPC with a dialogue, for instance) by adding a close button. Then it attaches the player on your OnTimer60000 script event. You'll have to change your approach.
    1 point
  7. I tried using this and i use the mapflag "nogo" and i think it bypassing it. http://rathena.org/wiki/Mapflag#nogo
    1 point
×
×
  • Create New...