Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-14-2002, 06:47 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Fishing

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
Attached Files
File Type: graal fishinghut.graal (3.1 KB, 192 views)
__________________
Reply With Quote
  #2  
Old 02-14-2002, 07:04 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Did you reset the string after you sold them?
setstring client.string,;
Reply With Quote
  #3  
Old 02-14-2002, 07:29 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Umm... im just trying to see whats wrong >.< I dunno about strings, well, not alot anyway
__________________
Reply With Quote
  #4  
Old 02-14-2002, 07:34 AM
Dustey Dustey is offline
Registered User
Join Date: Nov 2001
Location: Do You Think I Know?
Posts: 193
Dustey is on a distinguished road
Send a message via AIM to Dustey
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 i do believe thats the problem

maybe use setstring smyfish,;
__________________
And Yes I work For.... Renegade
Reply With Quote
  #5  
Old 02-14-2002, 07:39 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
alright, thankz
__________________
Reply With Quote
  #6  
Old 02-14-2002, 07:49 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Can someone fix it up completly, its not working >.< Then post it?
__________________
Reply With Quote
  #7  
Old 02-14-2002, 09:31 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #8  
Old 02-14-2002, 02:50 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
i'll take a looksie and see what i can come up with
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #9  
Old 02-15-2002, 03:36 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Alright...
__________________
Reply With Quote
  #10  
Old 02-15-2002, 04:16 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
*looks at the script*
erm dude i can not find a thing wrong with it, it fully works for me
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #11  
Old 02-15-2002, 06:52 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
i hate making fishing...it makes me cry...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #12  
Old 02-15-2002, 02:47 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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.
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #13  
Old 02-15-2002, 11:22 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
i just finished a fishing system

:P

its on Frolic everyone, come check it out
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #14  
Old 02-16-2002, 06:07 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
yeah fishing ain't too hard, just annoying.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #15  
Old 02-16-2002, 06:23 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #16  
Old 02-16-2002, 07:16 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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!
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #17  
Old 02-17-2002, 02:28 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Saga2001


that sucks worse than funky cheese!
yeah and it smells as bad aswell
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:48 PM.


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