Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Fishing Rod (https://forums.graalonline.com/forums/showthread.php?t=23977)

lordhelmut 02-17-2002 09:46 PM

Fishing Rod
 
Zell wanted this so I figured a lot more of you probably have no idea. Here is a stupid stupid fishing pole made a long time ago. It sucks now and thats why im giving it away just to give you guys an idea.

if (created) {
setcharprop #c,Fishing RoD;
}
if (playerenters) {
toweapons Fishing RoD;
}
if (weaponfired && onwater(players[0].x,players[0].y)){
setani fishing,fishrod2.png;
freezeplayer 3;
fishweight = int(random(1,10));
fishedweight = strtofloat(#s(fishedweight))+fishweight;
if (fishedweight>100) fishedweight = 150;
setstring fishedweight,#v(fishedweight);
setstring fishedsize,#v(strtofloat(#s(fishedsize))+this.size );
setstring client.fishedweight,#s(fishedweight);
setplayerprop #c,I got a #v(fishweight) pounder!;
sleep 2;
setplayerprop #c,I now have #s(fishedweight) lbs of fish;
setstring this.fisher,#a;
}
if (weaponfired && !onwater(players[0].x,players[0].y)){
setplayerprop #c,I cant fish here;
}

It may need more stuff, i just copy pasted the code out of the fishing pole on my level

lordhelmut 02-17-2002 10:17 PM

im almost done with one now that u have to reel in :)


All times are GMT +2. The time now is 11:53 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.