Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===== Custom eAthena Script =======================================
- //= Fishing Script
- //===== By: =========================================================
- //= Mercurial
- //===== Description =================================================
- //= Fishing spot with random prizes and monsters
- //===== Version =====================================================
- //= 1.0
- //===== Description =================================================
- //= $@fishitem - Fishing Prize IDs
- //= $itemreq[0] - Fishing Rod ID (Currently set at Hypnotist's Staff[1])
- //= $itemreq[1] - Bait ID (Currently set at Fatty Chubby Earthworm)
- //= $itemreq[2] - Fishing Hat ID (Currently set at Fisherman's Hat)
- //= $@emonster - Monster IDs
- //= @fishch - Fishing Item Chance
- //= $@fp$ - NPC Name
- //===================================================================
- //= If you want to add more events just add more cases in the second
- //= switch()
- //= Have fun!
- //===================================================================
- alb2trea,95,98,4 script Fishing Spot::fishing 723,{
- setarray $@Rareitem[0], 12107, 12106, 5100, 5283, 5277, 5284, 5099, 5140, 5153, 2358, 5103, 5278, 5102, 12244, 12189, 12240, 5287, 5184, 5200, 5282, 2664, 2708, 2665, 2667;
- setarray $@fishitem[0], 7539,644,603,617,12211,12208,12103,604,12999, 13761, 13598;
- setarray $@Catch[0], 902,2401,6426,6049,6096,579,908,963,956,918,960,624,7047,704,1054,1053,7003,720,7013,7870;// List of Junk/Other
- //Fishing rod
- set .@Rod,2764;
- //Fishing Lure
- set .@Lure,537;
- setarray $@emonster[0], 1031, 1045, 1070, 1044;
- set @fishch, 80;
- set $@fp$, "[Fishing Spot]";
- if (isequipped(.@Rod)) && (countitem(.@Lure))
- {
- mes $@fp$;
- mes "You see fish swimming at your feet.";
- mes "Do you want start fishing?";
- switch(select("Yes", "No"))
- {
- case 1:
- next;
- switch(rand(1,7))
- {
- delitem .@Lure, 1;
- case 1:
- goto GotFish;
- break;
- case 2:
- mes $@fp$;
- mes "You were close but nothing was caught.";
- dispbottom "[Fishing] Nothing was caught...";
- close2;
- specialeffect2 611;
- end;
- break;
- case 3:
- mes $@fp$;
- mes "You caught an piece of junk item... Yay?";
- getitem $@Catch[rand(0,getarraysize($@Catch)-1)],1;
- close;
- break;
- case 4:
- getmapxy $@fmap$,$@fmapx,$@fmapy,0;
- set $@rn, rand(0, getarraysize($@emonster) - 1);
- mes $@fp$;
- mes "You fished out a " + getmonsterinfo($@emonster[$@rn], 0) + " ... Run!!!";
- monster $@fmap$, $@fmapx, $@fmapy, getmonsterinfo($@emonster[$@rn], 0) + " Leader", $@emonster[$@rn], 1;
- close2;
- for(set .ctr,0; .ctr<=10; set .ctr, .ctr + 1)
- {
- if(rand(1, 10) <= 1)
- {
- npctalk "The " + getmonsterinfo($@emonster[$@rn],0) + " called for back up... RUN!";
- monster $@fmap$, $@fmapx, $@fmapy, getmonsterinfo($@emonster[$@rn], 0), $@emonster[$@rn], 1;
- }
- }
- end;
- break;
- case 5:
- mes $@fp$;
- mes "You caught an piece of junk item... Yay?";
- getitem $@Catch[rand(0,getarraysize($@Catch)-1)],1;
- close;
- break;
- case 6:
- mes $@fp$;
- goto GotFish;
- close;
- break;
- case 7:
- mes $@fp$;
- mes "You were close but nothing was caught.";
- dispbottom "[Fishing] Nothing was caught...";
- close2;
- specialeffect2 611;
- end;
- break;
- case 8:
- mes $@fps$;
- mes "The Luck Dice rolls...";
- mes "Input the a number from 1 to 4";
- set @chance,rand(1,4);
- input @hisinput;
- if(@hisinput==@chance)
- {
- set @fishch,@fishch+10;
- goto GotFish;
- }
- else
- goto GotFish;
- }
- break;
- case 2:
- next;
- mes $@fp$;
- mes "...You walked away...";
- close;
- break;
- }
- close;
- }
- else
- {
- mes $@fp$;
- mes "You need a "+getitemname(.@Rod)+" and to "+getitemname(.@Lure)+" start fishing.";
- next;
- mes " for better change you need a "+getitemname(5317)+", "+getitemname(2550)+" and "+getitemname(2443)+" .";
- close;
- }
- end;
- GotFish :
- if (isequipped(5317)) set @fishch,@fishch + 5;
- if (isequipped(2550)) set @fishch,@fishch + 5;
- if (isequipped(2443)) set @fishch,@fishch + 5;
- if (isequipped(2764)) set @fishch,@fishch + 5;
- if(rand(1,100) >= 100)
- {
- mes $@fp$;
- mes "You had to throw the fish back";
- mes "but luckily it was carrying an item.";
- getitem $@Rareitem[rand(0,getarraysize($@Rareitem)-1)],1;
- mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Super Jackpot from fishing!",bc_map,"0xff77ff";
- close2;
- specialeffect2 610;
- end;
- }
- else if(rand(1, 100) < @fishch)
- {
- mes $@fp$;
- mes "You had to throw the fish back";
- mes "but luckily it was carrying an item.";
- getitem $@fishitem[rand(0,getarraysize($@fishitem)-1)],1;
- mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Jackpot from fishing!",bc_map,"0xff77ff";
- close2;
- specialeffect2 610;
- end;
- }
- else if(rand(1, 100) <= 15 && countitem(.@Rod))
- {
- mes $@fp$;
- mes "You managed to catch something, but it was too heavy for your pole";
- mes "to endure. The Pole you were using snapped in half.";
- delitem .@Rod, 1;
- close2;
- specialeffect2 611;
- end;
- }
- else
- {
- mes $@fp$;
- mes "You managed to catch something, but it managed to escape.";
- close2;
- specialeffect2 611;
- end;
- }
- end;
- }
- hu_fild05,181,226,4 duplicate(fishing) Fishing Spot 723
- jawaii.gat,146,105,1 duplicate(fishing) Fishing Spot#10 723
- jawaii.gat,190,112,1 duplicate(fishing) Fishing Spot#11 723
- jawaii.gat,185,137,1 duplicate(fishing) Fishing Spot#12 723
- jawaii.gat,194,136,1 duplicate(fishing) Fishing Spot#13 723
- jawaii.gat,244,117,1 duplicate(fishing) Fishing Spot#14 723
- jawaii.gat,156,182,1 duplicate(fishing) Fishing Spot#15 723
- jawaii.gat,105,181,1 duplicate(fishing) Fishing Spot#16 723
- jawaii.gat,106,199,1 duplicate(fishing) Fishing Spot#17 723
- jawaii.gat,123,219,1 duplicate(fishing) Fishing Spot#18 723
- jawaii.gat,133,271,1 duplicate(fishing) Fishing Spot#19 723
- jawaii.gat,104,235,1 duplicate(fishing) Fishing Spot#20 723
- jawaii.gat,120,247,1 duplicate(fishing) Fishing Spot#21 723
- jawaii.gat,159,185,1 duplicate(fishing) Fishing Spot#22 723
- jawaii.gat,119,164,1 duplicate(fishing) Fishing Spot#23 723
- comodo.gat,256,163,1 duplicate(fishing) Fishing Spot#37 723
- comodo.gat,223,115,1 duplicate(fishing) Fishing Spot#38 723
- comodo.gat,167,80,1 duplicate(fishing) Fishing Spot#39 723
- comodo.gat,231,77,1 duplicate(fishing) Fishing Spot#40 723
- comodo.gat,254,80,1 duplicate(fishing) Fishing Spot#41 723
- alb2trea.gat,116,88,1 duplicate(fishing) Fishing Spot#24 723
- alb2trea.gat,102,97,1 duplicate(fishing) Fishing Spot#25 723
- treasure01.gat,68,113,1 duplicate(fishing) Fishing Spot#26 723
- treasure01.gat,68,148,1 duplicate(fishing) Fishing Spot#27 723
- treasure01.gat,52,154,1 duplicate(fishing) Fishing Spot#28 723
- treasure01.gat,87,156,1 duplicate(fishing) Fishing Spot#29 723
- treasure01.gat,68,168,1 duplicate(fishing) Fishing Spot#30 723
- treasure02.gat,101,68,1 duplicate(fishing) Fishing Spot#31 723
- hu_fild05.gat,187,186,1 duplicate(fishing) Fishing Spot#42 723
- hu_fild05.gat,182,228,1 duplicate(fishing) Fishing Spot#43 723
- hu_fild05.gat,143,127,1 duplicate(fishing) Fishing Spot#44 723
- hu_fild05.gat,243,123,1 duplicate(fishing) Fishing Spot#45 723
- hu_fild05.gat,169,201,1 duplicate(fishing) Fishing Spot#46 723
- prt_fild08,329,301,0 duplicate(fishing) Fishing Spot#47 723
- izlude,143,222,0 duplicate(fishing) Fishing Spot#48 723
- hugel,150,135,0 duplicate(fishing) Fishing Spot#49 723
- niflheim,59,232,0 duplicate(fishing) Fishing Spot#50 723
- hugel,119,182,0 duplicate(fishing) Fishing Spot#51 723
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement