Graal Forums

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

zell12 02-14-2002 06:47 AM

Fishing
 
1 Attachment(s)
Alright, im going to post a level and I need someone to fix it kindly... Or just tell me the problem...
When you catch say 20 fish, and you sell them, then go catch one more, your fish go back to 20+1 more that you just caught

Python523 02-14-2002 07:04 AM

Did you reset the string after you sold them?
setstring client.string,;

zell12 02-14-2002 07:29 AM

Umm... im just trying to see whats wrong >.< I dunno about strings, well, not alot anyway :p

Dustey 02-14-2002 07:34 AM

i do believe this is the problem
Quote:

// NPC made by ÑÃ*ñgñøñg,brb scripting
timereverywhere;
if (timeout||playerenters) {
myfish = strtofloat(#s(smyfish));
timeout = .05;
}
if (playerchats&&strequals(#c,sell Fish)&&myfish=>1){
playerrupees+=myfish/0.5;sleep.05;
myfish=0;setplayerprop #c,Sold Fish;
setstring smyfish,#v(myfish);
}

umm... just wondering why are using a var if u can just use the strings themselves:confused: i do believe thats the problem

maybe use setstring smyfish,;

zell12 02-14-2002 07:39 AM

alright, thankz

zell12 02-14-2002 07:49 AM

Can someone fix it up completly, its not working >.< Then post it?

Python523 02-14-2002 09:31 AM

This is what I do for editing strings, first Ill just set a var and a string:
if (created)
{
var=10;
setstring client.string,10;
}
if (playertouchsme)
{
var=strtofloat(#s(client.string))+1;
setstring client.string,#v(var);
}
you can edit that anyway you want

neomaximus2k 02-14-2002 02:50 PM

i'll take a looksie and see what i can come up with

zell12 02-15-2002 03:36 AM

Alright...

neomaximus2k 02-15-2002 04:16 AM

*looks at the script*
erm dude i can not find a thing wrong with it, it fully works for me

Saga2001 02-15-2002 06:52 AM

i hate making fishing...it makes me cry...

neomaximus2k 02-15-2002 02:47 PM

Quote:

Originally posted by Saga2001
i hate making fishing...it makes me cry...
fishing aint that bad. it is an easy script but it is all over the place.

TDK_RC6 02-15-2002 11:22 PM

i just finished a fishing system

:P

its on Frolic everyone, come check it out

Saga2001 02-16-2002 06:07 PM

yeah fishing ain't too hard, just annoying.

neomaximus2k 02-16-2002 06:23 PM

Quote:

Originally posted by Saga2001
yeah fishing ain't too hard, just annoying.
Very anoyying, but you can make a REALLY good fishing script if you really put your mind to it, i did make one that was almost real life kind of thing. was pretty good, but alla i lost it when my Hard drive died

Saga2001 02-16-2002 07:16 PM

Quote:

Originally posted by neomaximus2k


Very anoyying, but you can make a REALLY good fishing script if you really put your mind to it, i did make one that was almost real life kind of thing. was pretty good, but alla i lost it when my Hard drive died

that sucks worse than funky cheese!

neomaximus2k 02-17-2002 02:28 AM

Quote:

Originally posted by Saga2001


that sucks worse than funky cheese!

yeah and it smells as bad aswell


All times are GMT +2. The time now is 02:27 PM.

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