Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Can Any One See Whats Wrong? (https://forums.graalonline.com/forums/showthread.php?t=26509)

Spark910 03-29-2002 03:45 AM

Can Any One See Whats Wrong?
 
This Is A NPC For Staff and for Player System:
Its a warper to a survivor island

For Player System:

NPC Code:

// NPC made by Spark911
if (playerenters) {
toweapons SYSTEM;
}
if (strcontains(#s(server.survivorwarp), #a) && !strequals(#l,pedro-as-24.graal)) {
setstring server.survivorwarp, ;
setlevel2 pedro-as-24.graal,24,55;
}




And For Staff:


NPC Code:

// NPC made by Spark911
if (playerenters) {
toweapons Survivor-Warper;
}
if (playerchats&&strcontains(#c,warp)) {
tokenize #c;
setstring server.survivorwarp,#t(2);
sleep 0.5;
setstring server.survivorwarp, ;
}



Its just wont warp me when i try!

darkriders_p2p 03-29-2002 05:08 AM

Re: Re: Can Any One See Whats Wrong?
 
Quote:

Originally posted by Kaimetsu


It's not obvious what you're trying to do, but stop using strcontains. strequals or startswith would do the trick in all of the places that you've used it. Secondly, don't put spaces in things like setstring blah,; Thirdly if you want it to repeatedly check the string then use a timeout.

Kai is suppah leet sex0r and ish b very smart, and when he puts:
NPC Code:

strcontains(#s(server.survivorwarp), #a)


does the space between the comma and #a matter?

screen_name 03-29-2002 05:36 AM

Re: Can Any One See Whats Wrong?
 
NPC Code:

// NPC made by screen_name
if (playerenters) {
toweapons -System;
}
if (isweapon) {
timeout=.1;
}
if (timeout) {
if (lindexof(#a,server.survivorwarp)>=0 && !strequals(#F,pedro-as-24.graal)) {
deletestring server.survivorwarp,lindexof(#a,survivorwarp);
setlevel2 pedro-as-24.graal,24,55;
}
timeout=.1;
}




NPC Code:

// NPC made by screen_nane
if (playerenters) {
toweapons -Survivor-Warper;
}
if (playerchats&&strartswith(#c,warpto)) {
tokenize #c;
if (tokenscount==2&&strequals(#t(0),warpto)) {
addstring server.survivorwarp,#t(1);
}
}


Spark910 03-29-2002 06:08 AM

None of that seems to work!
I want a NPC that its no a NPCw now (cos its easyier to get at)

1.) NPCW System script
2.) NPC that u say:
warp <ACCOUNT>
then it waps them to:
pedro-as-24.graal

3.)NPC To delete String so that u dont keep getting warped to that level!

thats all i want!

darkriders_p2p 03-29-2002 07:59 AM

x.x;
you asked for the script.Bye bye thread

Dustey 03-29-2002 08:22 AM

:( cya later :(

all that is easy to do so if you cant do that you need to learn more

Saga2001 03-29-2002 08:46 AM

Re: Re: Re: Can Any One See Whats Wrong?
 
Quote:

Originally posted by darkriders_p2p


Kai is suppah leet sex0r and ish b very smart, and when he puts:
NPC Code:

strcontains(#s(server.survivorwarp), #a)


does the space between the comma and #a matter?

both statements are true...

Quote:

Orininally posted by Spark910
None of that seems to work!
I want a NPC that its no a NPCw now (cos its easyier to get at)

Talk about spelling errors...

screen_name 03-29-2002 11:11 AM

im just confused now

darkriders_p2p 03-29-2002 12:34 PM

I'm assuming he wants ppl to Tell him this script
why doesn't this thread close

Spectre1337 03-29-2002 03:28 PM

Re: Can Any One See Whats Wrong?
 
Quote:

Originally posted by Spark910

NPC Code:

// NPC made by Spark911
if (playerenters) {
toweapons SYSTEM;
}
if (strcontains(#s(server.survivorwarp), #a) && !strequals(#l,pedro-as-24.graal)) {
setstring server.survivorwarp, ;
setlevel2 pedro-as-24.graal,24,55;
}




levels is #L graal is case sensitive for that kind of command.

screen_name 03-29-2002 10:17 PM

sorry kai :D


anyways, isn't the #L p2p only?

Spark910 03-30-2002 02:13 AM

Quote:

Originally posted by Kaimetsu


Because I'm gonna give him a chance since he didn't just ask for it from the beginning.

Spark910: Try to make the script on your own based on the help that has been given here.

Everybody else: No posting of a completed script, please.

I cant script but i need this 4 my server, I am learning but no 1 teaches me so thats why i ask, also im used to people not telling me the script as the only nice scripters and kind giving and helping ones are that of the staff on Andor.

Spectre1337 03-30-2002 08:03 AM

Quote:

Originally posted by screen_name
sorry kai :D


anyways, isn't the #L p2p only?

nope, i use it on free.


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

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