Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   if i say (https://forums.graalonline.com/forums/showthread.php?t=25846)

Darkspector 03-18-2002 04:31 AM

if i say
 
how would i script somthin so that if i said "Artic Banana" it warp me to x,y

haunter 03-18-2002 04:39 AM

Re: if i say
 
Quote:

Originally posted by Darkspector
how would i script somthin so that if i said "Artic Banana" it warp me to x,y
NPC Code:
 
If (playersays(artic banana) {playerx=(x); playery=(y);}



Or

NPC Code:
 
If (playerchats && strequals(#c,artic banana) {playerx=(x); playery=(y);}




Take out the "(y)"s and replace them with the y co-ordinate you want to warp to, and do the same for the "(x)"s except for your x co-ordinate

BARGAD 03-18-2002 06:18 AM

No No
 
playersays =:
1) dont work anymore
2) it repetes the action till the #c prop has changed to " "

so you should use playerchats&&strequals(#c,))
or playersays2(text) if it still works

-Note that playersays2 only uses the action once-

/FrEaKy CaRnIe

haunter 03-18-2002 09:33 AM

Re: No No
 
Quote:

Originally posted by BARGAD
playersays =:
1) dont work anymore
2) it repetes the action till the #c prop has changed to " "

so you should use playerchats&&strequals(#c,))
or playersays2(text) if it still works

-Note that playersays2 only uses the action once-

/FrEaKy CaRnIe

so playersays2 works like playerchats&&strequals(#c,)

?

BARGAD 03-18-2002 09:34 AM

exactly :)
Or it did, I dont know if it still works because playersays dosnt

/CaRnIe

screen_name 03-18-2002 10:34 AM

playersays2??

i never heard of that

BARGAD 03-18-2002 10:36 AM

I hadnt either till Sky (NAT Cheif on Shaded Legend) told me about it

/CaRnIe

screen_name 03-18-2002 11:47 AM

Re: Re: if i say
 
Quote:

Originally posted by haunter


NPC Code:
 
If (playersays(artic banana) {playerx=(x); playery=(y);}



Or

NPC Code:
 
If (playerchats && strequals(#c,artic banana) {playerx=(x); playery=(y);}




Take out the "(y)"s and replace them with the y co-ordinate you want to warp to, and do the same for the "(x)"s except for your x co-ordinate

missing the end ) in the if statements

BARGAD 03-18-2002 12:07 PM

Shhh
XD
I was gonna see if the guy asking for the script would say anything

/CaRnIe

haunter 03-19-2002 05:57 AM

Re: Re: Re: if i say
 
Quote:

Originally posted by screen_name

missing the end ) in the if statements

Haha, oops, it usually tells me when i hit the 'test' button and i fix it... the 'test' button is my friend... i am not leet =(

konidias 03-19-2002 10:56 AM

What a weird style of coding you guys use.. here is what I came out with, oh and I spelled arctic the way I figured it should be spelled :)

NPC Code:

if (playerchats && strequals(#c,arctic banana)) {
playerx = 32;
playery = 32;
}


Saga2001 03-19-2002 12:18 PM

Quote:

this dood Darkspector posted this:
how would i script somthin so that if i said "Artic Banana" it warp me to x,y
*taps his foot waiting for kai to close this thread*

neomaximus2k 03-19-2002 03:49 PM

Quote:

Originally posted by Saga2001

*taps his foot waiting for kai to close this thread*

Yes i agree on this, the question has been answered even tho really it never should have been.
but anyways i'm outa here

BARGAD 03-19-2002 08:59 PM

I think it can be closed now, We've explained it 10 times :)

/CaRnIe

Spanko 03-19-2002 09:04 PM

Quote:

Originally posted by Kaimetsu
I dunno. It's simplistic enough not to really trigger the close button of Doom, I think.
Yes he isn't asking anyone for a "Whole custom controls and HP system" :P


All times are GMT +2. The time now is 05:19 AM.

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