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-05-2002, 06:58 AM
happyme happyme is offline
Registered User
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 142
happyme is on a distinguished road
Send a message via AIM to happyme
Unhappy :(

i had lordhel.'s bank menu as a tamplet... it jumps to the 3d one... some please help ma
NPC Code:

// NPC made
if (playerchats&&strequals(#c,ok)) {
this.position=0;
setani idle,;
timeout=.05;
disabledefmovement;
setplayerprop #c, ;
showimg 500,od-pickaxemenu.gif,(screenwidth/2)-(283/2),(screenheight/2)-(335/2);
changeimgvis 500,4;
}

if(timeout&&this.position=0){
showimg 501,@verdama@b@Collection,(screenwidth/2)-(255/2)-1,(screenheight/2)-(180/2)-1;
changeimgvis 501,4;
changeimgzoom 501,.8;

showimg 502,@verdama@@-->Gold,(screenwidth/2)-(255/2)-1,(screenheight/2)-(150/2)-1;
changeimgvis 502,4;
changeimgzoom 502,.8;

showimg 503,@verdama@@Ore,(screenwidth/2)-(255/2)-1,(screenheight/2)-(120/2)-1;
changeimgvis 503,4;
changeimgzoom 503,.8;

showimg 504,@verdama@@Copper,(screenwidth/2)-(255/2)-1,(screenheight/2)-(90/2)-1;
changeimgvis 504,4;
changeimgzoom 504,.8;

showimg 505,@verdama@@Ruby,(screenwidth/2)-(255/2)-1,(screenheight/2)-(60/2)-1;
changeimgvis 505,4;
changeimgzoom 505,.8;

showimg 506,@verdama@@Blue Gem,(screenwidth/2)-(255/2)-1,(screenheight/2)-(30/2)-1;
changeimgvis 506,4;
changeimgzoom 506,.8;
timeout=.05;
}

if(timeout){
if(keydown(2)&&this.position=0){
this.position=1;
showimg 501,@verdama@b@Collection,(screenwidth/2)-(255/2)-1,(screenheight/2)-(180/2)-1;
changeimgvis 501,4;
changeimgzoom 501,.8;

showimg 502,@verdama@@Gold,(screenwidth/2)-(255/2)-1,(screenheight/2)-(150/2)-1;
changeimgvis 502,4;
changeimgzoom 502,.8;

showimg 503,@verdama@@-->Ore,(screenwidth/2)-(255/2)-1,(screenheight/2)-(120/2)-1;
changeimgvis 503,4;
changeimgzoom 503,.8;

showimg 504,@verdama@@Copper,(screenwidth/2)-(255/2)-1,(screenheight/2)-(90/2)-1;
changeimgvis 504,4;
changeimgzoom 504,.8;

showimg 505,@verdama@@Ruby,(screenwidth/2)-(255/2)-1,(screenheight/2)-(60/2)-1;
changeimgvis 505,4;
changeimgzoom 505,.8;

showimg 506,@verdama@@Blue Gem,(screenwidth/2)-(255/2)-1,(screenheight/2)-(30/2)-1;
changeimgvis 506,4;
changeimgzoom 506,.8;
timeout=.05;
}
}

if(timeout){
if(keydown(2)&&this.position=1){
this.position=1;
showimg 501,@verdama@b@Collection,(screenwidth/2)-(255/2)-1,(screenheight/2)-(180/2)-1;
changeimgvis 501,4;
changeimgzoom 501,.8;

showimg 502,@verdama@@Gold,(screenwidth/2)-(255/2)-1,(screenheight/2)-(150/2)-1;
changeimgvis 502,4;
changeimgzoom 502,.8;

showimg 503,@verdama@@Ore,(screenwidth/2)-(255/2)-1,(screenheight/2)-(120/2)-1;
changeimgvis 503,4;
changeimgzoom 503,.8;

showimg 504,@verdama@@-->Copper,(screenwidth/2)-(255/2)-1,(screenheight/2)-(90/2)-1;
changeimgvis 504,4;
changeimgzoom 504,.8;

showimg 505,@verdama@@Ruby,(screenwidth/2)-(255/2)-1,(screenheight/2)-(60/2)-1;
changeimgvis 505,4;
changeimgzoom 505,.8;

showimg 506,@verdama@@Blue Gem,(screenwidth/2)-(255/2)-1,(screenheight/2)-(30/2)-1;
changeimgvis 506,4;
changeimgzoom 506,.8;
}
timeout=.05;
}

__________________

Last edited by happyme; 03-06-2002 at 04:29 AM..
Reply With Quote
  #2  
Old 03-05-2002, 08:00 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
use a sleep after the keydown
Reply With Quote
  #3  
Old 03-05-2002, 08:46 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
I redid it and now it works great
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #4  
Old 03-05-2002, 09:27 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
Ummmm...
Hppyyou.....read the guidelines.
__________________

!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
  #5  
Old 03-05-2002, 10:07 AM
happyme happyme is offline
Registered User
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 142
happyme is on a distinguished road
Send a message via AIM to happyme
oh

why did i do suffin wrong x.x?
and lord helm. any way you can tell me how to do it?
__________________
Reply With Quote
  #6  
Old 03-05-2002, 11: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
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: oh

Quote:
Originally posted by Kaimetsu
If you have a script that doesn't work, find out WHERE it doesn't work before you post it. Cut out chunks and see if the error still occurs. Try to get it as small as possible to eliminate places where the bug could be, so we have to read less. Understand?
Yay! Tell him kai!
Also I think python was right about the keydown, next time don't post the ENTIRE script.

Quote:
Originally posted by Happyme
// NPC made by Stefan Knorr is a Money Grabbing *****!!
Poor stefan
__________________

!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-07-2002, 09:59 AM
happyme happyme is offline
Registered User
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 142
happyme is on a distinguished road
Send a message via AIM to happyme
Unhappy AHHHH

ANYONE WANNA HELP?
__________________
Reply With Quote
  #8  
Old 03-07-2002, 10:01 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
*sigh*
in the part where the script increases(sp?) the var do this:
if (timeout&&keydown(#))
{
sleep .1;
whatever++;
}
Reply With Quote
  #9  
Old 03-07-2002, 10:33 AM
happyme happyme is offline
Registered User
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 142
happyme is on a distinguished road
Send a message via AIM to happyme
eh

works but it does to the 2nd one but doesnt stop it goes to the 3 x.x
__________________
Reply With Quote
  #10  
Old 03-08-2002, 12:54 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
Quote:
Originally posted by Kaimetsu
Look, stop this. The problem is infinitely simple, if you wanna solve it then become a scripter. Otherwise don't deal with scripts.
Man how could anyone think were their scripting ****s, I feel abused, we should go on strike and not post in scripting for a day! . Hahahaha no, I couldn't stay away...
__________________

!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
  #11  
Old 03-08-2002, 04:56 AM
happyme happyme is offline
Registered User
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 142
happyme is on a distinguished road
Send a message via AIM to happyme
...

i tried like 15 million times...
__________________
Reply With Quote
  #12  
Old 03-08-2002, 03:12 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
Re: Re: ...

Quote:
Originally posted by Kaimetsu


Proof enough that this is out of your league. Try working on some easier stuff to develop your skills first, learn to walk before you try to run.
learn to fall before you can fly
__________________
Beware of thy Inner self
NPC Code:

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

Reply With Quote
  #13  
Old 03-08-2002, 10:24 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
Re: Re: Re: Re: ...

Quote:
Originally posted by Kaimetsu


I would think that suicidal.
Sounds like it...
Yes learn to fly, my wings are pretty. *smiles*
__________________

!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
  #14  
Old 03-08-2002, 11:42 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
Re: Re: Re: Re: ...

Quote:
Originally posted by Kaimetsu


I would think that suicidal.
not if you have a rubber hat you would bounce abck up and then try and fly
*i live in a strange weird world.... called graal online*
__________________
Beware of thy Inner self
NPC Code:

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

Reply With Quote
  #15  
Old 03-09-2002, 11:59 AM
happyme happyme is offline
Registered User
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 142
happyme is on a distinguished road
Send a message via AIM to happyme
thxs ne way

okay im so happy i fixxed it muahaha PHHHH!!!!!
__________________
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 12:01 AM.


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