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-29-2002, 03:45 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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!
__________________
--Spark911
Reply With Quote
  #2  
Old 03-29-2002, 05:08 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
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?
__________________
maximus_asinus
Reply With Quote
  #3  
Old 03-29-2002, 05:36 AM
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: 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);
}
}

__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 03-29-2002, 06:08 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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!
__________________
--Spark911
Reply With Quote
  #5  
Old 03-29-2002, 07:59 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
x.x;
you asked for the script.Bye bye thread
__________________
maximus_asinus
Reply With Quote
  #6  
Old 03-29-2002, 08:22 AM
Dustey Dustey is offline
Registered User
Join Date: Nov 2001
Location: Do You Think I Know?
Posts: 193
Dustey is on a distinguished road
Send a message via AIM to Dustey
cya later

all that is easy to do so if you cant do that you need to learn more
__________________
And Yes I work For.... Renegade
Reply With Quote
  #7  
Old 03-29-2002, 08:46 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
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...
__________________

!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
  #8  
Old 03-29-2002, 11:11 AM
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
im just confused now
__________________
[signature]insert here[/signature]
Reply With Quote
  #9  
Old 03-29-2002, 12:34 PM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
I'm assuming he wants ppl to Tell him this script
why doesn't this thread close
__________________
maximus_asinus
Reply With Quote
  #10  
Old 03-29-2002, 03:28 PM
Spectre1337 Spectre1337 is offline
Banned
Spectre1337's Avatar
Join Date: Nov 2001
Location: United States
Posts: 790
Spectre1337 is on a distinguished road
Send a message via AIM to Spectre1337 Send a message via Yahoo to Spectre1337
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.
Reply With Quote
  #11  
Old 03-29-2002, 10:17 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
sorry kai


anyways, isn't the #L p2p only?
__________________
[signature]insert here[/signature]
Reply With Quote
  #12  
Old 03-30-2002, 02:13 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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.
__________________
--Spark911
Reply With Quote
  #13  
Old 03-30-2002, 08:03 AM
Spectre1337 Spectre1337 is offline
Banned
Spectre1337's Avatar
Join Date: Nov 2001
Location: United States
Posts: 790
Spectre1337 is on a distinguished road
Send a message via AIM to Spectre1337 Send a message via Yahoo to Spectre1337
Quote:
Originally posted by screen_name
sorry kai


anyways, isn't the #L p2p only?
nope, i use it on free.
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 01:27 AM.


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