Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-19-2002, 02:55 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
Unhappy dun get this.

if i try to get the owner tag and the thing that if you are at 10% it stops and sets other gif and continues agian with 0% it wont work can somebody plz fix this error oo here is the script where the error is in

NPC Code:
// NPC made by Discounter{hiring lats}
if (playerenters) {
}
if(actionwaterd) {this.User=#a;this.Mine=this.Mine+1; message #v(this.Mine)% by #v(this.User);sleep 0;}
if (this.User=#a) {
if (this.Mine=10) setgif bushgrape1.gif;sleep 5
}

__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #2  
Old 03-19-2002, 02:58 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
[Kadar]
// NPC made by Discounter
if(actionwaterd) {
if (this.Mine==0){
this.User=#a;
this.Mine++;
message #v(this.Mine)% by #v(this.User);
}
if (!this.Mine==0){
this.Mine++;
message #v(this.Mine)% by #v(this.User);
}
if (this.User=#a) {
if (this.Mine=10){
this.Mine = 0;
setgif bushgrape1.gif;sleep 5
}
}
[/Kadar]
__________________
Reply With Quote
  #3  
Old 03-19-2002, 03:05 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
still he say error
NPC Code:
[edited by Kadar]
// NPC made by Discounter
if(actionwaterd)
if (this.Mine==0){
this.User=#a;
this.Mine

__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #4  
Old 03-19-2002, 03:30 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
well that was much off help kai thanks dude..
any more advices on how i could make this thing work so it will stop if it reaches 10% and set other gif and than begins agian at 0%
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #5  
Old 03-19-2002, 03:44 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
well i fixed it lol the brackets where the prob.
bud how do i make sure that the second time it recheas 10% it will take second gfx
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #6  
Old 03-19-2002, 12:14 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 Kaimetsu


Use the style button on it then post it and I'll have a look.
he needs more than curlies, he needs a miracle...

#v(this.Mine)% by #v(this.User)


they are not variables, they are strings #s()
__________________

!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
  #7  
Old 03-19-2002, 12:33 PM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
*looks around*
how did la_builder make something that ALMOST worked when he couldn't make a guy facing north with the bow out.
*suspects of stealing*
he stole from a crappy scripter
__________________
maximus_asinus
Reply With Quote
  #8  
Old 03-19-2002, 03:47 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 darkriders_p2p
*looks around*
how did la_builder make something that ALMOST worked when he couldn't make a guy facing north with the bow out.
*suspects of stealing*
he stole from a crappy scripter
sad, isn't it?
__________________

!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
  #9  
Old 03-19-2002, 03:52 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 darkriders_p2p
*looks around*
how did la_builder make something that ALMOST worked when he couldn't make a guy facing north with the bow out.
*suspects of stealing*
he stole from a crappy scripter
yeah he stole from you LMAO :P
muwhahahahahahahahahahaha
__________________
Beware of thy Inner self
NPC Code:

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

Reply With Quote
  #10  
Old 03-19-2002, 06:16 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Kadar

NPC Code:

this.User=#a;


That's a joke, isn't it?
wasn't there a command called setstring?
else you would need to save the players id if u want it as a number (and if it's non p2p you should use a save var for this)
__________________
No Webhost at the moment
Reply With Quote
  #11  
Old 03-19-2002, 09:47 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Re: dun get this.

NPC Code:

// NPC made by screen_name

if(actionMined) {
if (this.User==NoOne) {
this.User=#a;
}
this.Mine++;
message #v(this.Mine)% by #v(this.User);
}
if (this.User==#a) {
if (this.Mine==10) {
setgif bushgrape1.gif;sleep 5;
}
}

__________________
[signature]insert here[/signature]
Reply With Quote
  #12  
Old 03-19-2002, 09:49 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by neomaximus2k


yeah he stole from you LMAO :P
muwhahahahahahahahahahaha

lol
__________________
[signature]insert here[/signature]
Reply With Quote
  #13  
Old 03-19-2002, 09:51 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by TDO2000

That's a joke, isn't it?
wasn't there a command called setstring?
else you would need to save the players id if u want it as a number (and if it's non p2p you should use a save var for this)
they use this.whatever=#a in playerhouses i think
__________________
[signature]insert here[/signature]
Reply With Quote
  #14  
Old 03-19-2002, 09:52 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
NPC Code:
// NPC fix0red by Grim Squeaker
if (actionMined) {
if (strlen(#s(this.User))==0)
setstring this.User,#a;
this.Mine++;
message #v(this.Mine)% by #v(this.User);
}
if (created||timeout) {
if (strequals(#s(this.User),#a)) {
if (this.Mine==100) {
setimg bushgrape1.gif;
sleep 5;
}
}
timeout=0.1;
}

This is assuming it's a P2P script, otherwise it won't work. It also doesn't seem to actually do anything after it's completed but that's something you'll have to change yourself.
And the owner never actually changes, which is something which Googi would probably love but is rather weird.

Quote:
Originally posted by screen_name

they use this.whatever=#a in playerhouses i think
It doesn't work anywhere nor ever. It's always setstring, though there are rumours Stefan is working on changing the scripting engine so it is possible to set string in such a fashion.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #15  
Old 03-19-2002, 10:07 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Spanko

It doesn't work anywhere nor ever. It's always setstring, though there are rumours Stefan is working on changing the scripting engine so it is possible to set string in such a fashion.
lol, okay, guess i was wrong
__________________
[signature]insert here[/signature]
Reply With Quote
Reply


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 03:02 AM.


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