1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
script=start
	on:attack2 {
		jade 2.5;
		event "iskill_fish","global";
	}
	on:fish_failure {
		$tmp=current_id();
		if (parent_class($tmp)==2){
			if (parent_id($tmp)==1){
				speech "negative";
				msg "I cannot fish here!",3;
			}
		}
	}
	on:fish_success {
		$tmp=current_id();
		if (parent_class($tmp)==2){
			if (parent_id($tmp)==1){
				//Bait?
			if
((playergotitem(98)+playergotitem(119)+playergotitem(122)+
playergotitem(125)+playergotitem(124)+pla
yergotitem(127))==0){
					$tmp2=skillvalue("fish");
					if ($tmp2>=500){
						find 89,random(1,2);
						speech "positive";
					}elseif($tmp2>=200){
						$tmp3=random(1,6);
						if ($tmp3==1){
							find 109;
							speech "positive";
						}elseif($tmp3==2){
							find 102;
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}else{
							find 89;
							speech "positive";
						}
					}elseif($tmp2>=100){
						$tmp3=random(1,3);
						if ($tmp3==1){
							find 109;
							speech "positive";
						}elseif($tmp3==2){
							find 102;
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}				
					}elseif($tmp2>=50){
						$tmp3=random(1,5);
						if ($tmp3==1){
							find 109;
							speech "positive";
						}elseif($tmp3==2){
							find 102;
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}
					}elseif($tmp2>=25){
						$tmp3=random(1,7);
						if ($tmp3==1){
							find 109;
							speech "positive";
						}elseif($tmp3==2){
							find 102;
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}
					}
				//Use a Bait
				}else{
					//Worm
					if (playergotitem(119)>0){
						freestored "unit",1,119,1;
						msg "Used worm as bait!",1;
					//Insectparts
					}elseif (playergotitem(98)>0){
						freestored "unit",1,98,1;
						msg "Used insect parts as bait!",1;
					//Spider
					}elseif (playergotitem(122)>0){
						freestored "unit",1,122,1;
						msg "Used spider as bait!",1;
					//Fly
					}elseif (playergotitem(125)>0){
						freestored "unit",1,125,1;
						msg "Used fly as bait!",1;
					//Dragonfly
					}elseif (playergotitem(124)>0){
						freestored "unit",1,124,1;
						msg "Used dragonfly as bait!",1;
					//Grasshopper
					}elseif (playergotitem(127)>0){
						freestored "unit",1,127,1;
						msg "Used grasshopper as bait!",1;
					}
					//Get Fish?
					$tmp2=skillvalue("fish");
					if ($tmp2>=500){
						find 89,random(1,3);
					}elseif($tmp2>=200){
						find 89,1;
						speech "positive";
					}elseif($tmp2>=50){
						$tmp3=random(1,100);
						if ($tmp3<=70){
							find 89;
							speech "positive";
						}
					}elseif($tmp2>=25){
						$tmp3=random(1,100);
						if ($tmp3<=50){
							find 89;
							speech "positive";
						}						
					}else{
						$tmp3=random(1,100);
						if ($tmp3<=30){
							find 89;
							speech "positive";
						}
					}
				}
			}
		}
	}
script=end
healthchange=0