Thread: Fshing Help
View Single Post
  #6  
Old 04-07-2002, 04:45 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
Quote:
Originally posted by Kaimetsu
Code tags please!
Like this I think..

PHP Code:
if(created) { Rodstock=30; } 
if (
playerenters) {message (#v(Rodstock) In Stock); } 
if (playerchats && strequals(#c,buy fishing rod) && playerrupees<99) {say2 Not Enough Money.; } 
if (playerchats && strequals(#c,buy fishing rod)) { 
if (Rodstock==0) { say2 No Rods In Stock.; } } 
if (
playerchats && strequals(#c,buy fishing rod) && !hasweapon(Fishing Rod)) { 
if (playerrupees>=100 && Rodstock>0) {setplayerprop #c,*Bought Fishing Rod*; 
toweapons Fishing RodRodstock=Rodstock-1playerrupees=playerrupees-100
message (#v(Rodstock) In Stock); } } 
if (weaponfired && hasweapon(Fishing Rod) && onwater(playerx-1,playery-1)||onwater(playerx+1,playery+1)||onwater(playerx-1,playery+1)||onwater(playerx+1,playery-1)) { 
freezeplayer 5
playersprite=33this.x=playerxthis.y=playery
if (
playerdir=0) { this.x+=1this.y-=1.4; } 
if (
playerdir=1) { this.x+=0this.y+=1.2
if (
playerdir=2) { this.-+=.7this.y+=1.2 
if (
playerdir=3) { this.x+=2this.y-=1.4
showimg 100,fishrod.png,this.x,this.y
changeimgpart 100,playerdir*20,0,20,35
freezeplayer 1fishweight int(random(1,5)); fishcatch int(random(1,10)); 
if(
fishcatch<=7) { } else { 
fishedweight strtofloat(#s(fishedweight))+fishweight; 
if (fishedweight>100fishedweight 150setstring fishedweight,#v(fishedweight); 
setstring fishedsize,#v(strtofloat(#s(fishedsize))+this.size); 
setstring client.fishedweight,#s(fishedweight); say2 You got a #v(fishweight) pounder!; 
setstring this.fisher,#a; }} 
__________________
Reply With Quote