Graal Forums

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

Jap 02-16-2002 12:54 PM

Need help.
 
I am trying to set a string. I think it's set. I said:
"setstring part,1;"

Then, on another NPC...I said:
"if (strequals(#s,part==1)){
setcharprop #c,blah blah;
}"

Except, it doesn't say "blah blah". Could someone please help me?

Python523 02-16-2002 01:11 PM

Thats not how you do strequals for a string, this is an example of strequals that worked for me:
if (timeout&&strequals(#s(client.hp),0))

Jap 02-16-2002 01:41 PM

Quote:

Originally posted by Python523
Thats not how you do strequals for a string, this is an example of strequals that worked for me:
if (timeout&&strequals(#s(client.hp),0))

Could you fix mine all back up like yours worked? :D

Python523 02-16-2002 02:27 PM

try..
if (created) {timeout=.05;}
if (timeout&&strequals(#s(part),1))
{setcharprop #c,blah blah;timeout=.05;}
else{timeout=.05;}

Jap 02-17-2002 02:43 AM

Quote:

Originally posted by Python523
try..
if (created) {timeout=.05;}
if (timeout&&strequals(#s(part),1))
{setcharprop #c,blah blah;timeout=.05;}
else{timeout=.05;}

Still not working. It says no if-clause is specified. As you can see, I'm not a great scripter.
Would someone tell me the scripts for both NPC's?
EX: For one, say do this in the script:

if (created){
string is being set like this;
}

Then for the second one say this:

if (string is acutallt set do this){
setcharprop #c,blah blah;
}

Python523 02-17-2002 02:46 AM

if (created) {setstring part,1;}
if (created) {timeout=.05;}
if (timeout&&strequals(#s(part),1))
{setcharprop #c,blah blah;timeout=.05;}
else{timeout=.05;}
that should work, havent tested, if you want me to try to fix all the parts of the script, PM me it or post it

Jap 02-17-2002 03:32 AM

Yes I would =)


All times are GMT +2. The time now is 01:06 PM.

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