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
  #41  
Old 10-02-2001, 04:34 AM
Guest
Posts: n/a
well then i will just use this for now....
NPC Code:

if (playerchats&&strequals(#c,Show Players Jailed)) {
say2 #s(server.jail);
}



but it goes of the screen when their is to many people in server.jail
Also i dunno whats the code to set the players level your unjailing to onlinestartlocal.graal
the one i said before will mess up big time, it will warp verybody on the server to onlinestartlocal.graal
Reply With Quote
  #42  
Old 10-02-2001, 04:41 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Lady Midnight made a script that automatically parses strings and shows them in signs correctly... I'm sure that if you asked her, she might let you use it ^_^
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #43  
Old 10-02-2001, 04:42 AM
Guest
Posts: n/a
Quote:
Originally posted by entravial
~AlphaFlame~

Lady Midnight made a script that automatically parses strings and shows them in signs correctly... I'm sure that if you asked her, she might let you use it ^_^
I dunno lady midnight, what server she always plays or whats her aim or icq?
Reply With Quote
  #44  
Old 10-02-2001, 04:48 AM
Guest
Posts: n/a
Also btedji whats the script that will warp them out of jail to onlinestartlocal.graal is it like setlevel2 @#t(2) onlinestartlocal.graal or what....
Reply With Quote
  #45  
Old 10-02-2001, 04:51 AM
Guest
Posts: n/a
Quote:
Originally posted by IcePick_2001
Also btedji whats the script that will warp them out of jail to onlinestartlocal.graal is it like setlevel2 @#t(2) onlinestartlocal.graal or what....
Or anybody that might know the script....
Reply With Quote
  #46  
Old 10-02-2001, 04:52 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Red face

You know, if you actually learned how to script, you wouldnt need to bother us and you could probably get your work done ALOT faster.
Reply With Quote
  #47  
Old 10-02-2001, 04:55 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Red face

But then you would bother us on how to do this and that anyways, so...
Reply With Quote
  #48  
Old 10-02-2001, 04:57 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
Quote:
Originally posted by ArmadeusWarlock
You know, if you actually learned how to script, you wouldnt need to bother us and you could probably get your work done ALOT faster.
Dude shut up! He is just asking for help jeeze.
__________________
Reply With Quote
  #49  
Old 10-02-2001, 04:58 AM
Guest
Posts: n/a
I am learning, I am asking you people to help me so i can learn...
Reply With Quote
  #50  
Old 10-02-2001, 04:59 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
no

He bascially asked us to make the script for him.

If people will do it for money or whatever he offers them, tahts fine, but its kind of hard to run a server and not know how to script well, even if you have a handful of scripters.
Reply With Quote
  #51  
Old 10-02-2001, 05:04 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
And its nice to know that your learning, but you learn better from scripting yourself than having a script made by someone else with things you know nothing about.
Reply With Quote
  #52  
Old 10-02-2001, 05:05 AM
Guest
Posts: n/a
Or should i do it this way
NPC Code:

if (playerenters||timeout){
if (strequals(#L,jailcell1.graal) && !strcontains(#s(server.jail), #e(12,-1,#c))) {
setlevel2 onlinestartlocal.graal,33,33;
}
}
timeout=.05;

Reply With Quote
  #53  
Old 10-02-2001, 05:06 AM
Guest
Posts: n/a
Quote:
Originally posted by ArmadeusWarlock
And its nice to know that your learning, but you learn better from scripting yourself than having a script made by someone else with things you know nothing about.
Well i know alot, i am just not good with strings ect....
Reply With Quote
  #54  
Old 10-02-2001, 05:10 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Well, I dont see what is so hard about strings

And just to be nice so I dont look like a ***** all day, in your script above, its best to use strequals than strcontains. Although Im being lazy now and wont scroll down to take a second look at the script, if your checking your Account, you would more than likely want to use strequals.
Reply With Quote
  #55  
Old 10-02-2001, 05:11 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
And I also dont see anything about even COMPARING it with your account name =)
Reply With Quote
  #56  
Old 10-02-2001, 05:15 AM
Guest
Posts: n/a
So it will be:
NPC Code:

if (playerenters||timeout){
if (strequals(#L,jailcell1.graal) && !strequals(#s(server.jail), #e(12,-1,#c))) {
setlevel2 onlinestartlocal.graal,33,33;
}
}
timeout=.05;

Reply With Quote
  #57  
Old 10-02-2001, 05:43 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
to make a display thing you would have to use a loop that would add one item to the list per person that is in the jail, but i dont feel like making the script because it would be too long
Reply With Quote
  #58  
Old 10-02-2001, 05:53 AM
Guest
Posts: n/a
Can you tell me how to make it warp them now?
Reply With Quote
  #59  
Old 10-02-2001, 05:56 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
NPC Code:

if (playerenters||timeout){
if (!strcontains(#s(server.jail),#a) {
setlevel2 onlinestartlocal.graal,33,33;
}
timeout=.05;
}



that should work
Reply With Quote
  #60  
Old 10-02-2001, 06:57 AM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
Quote:
Originally posted by IcePick_2001

Well i know alot, i am just not good with strings ect....
Haha
Hahahahaha
You know alot do you? Im not normaly one to take the piss, but all you do is get other people to script for you. The only reason Shadow Knight scripts for your server is because you pay him on Graal 2001. Maybe one day you should try learning to script yourself.......
__________________


Zorg (Era Staff) - Contact : [email protected]
Reply With Quote
  #61  
Old 10-02-2001, 07:10 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by ZORG1986

Haha
Hahahahaha
You know alot do you? Im not normaly one to take the piss, but all you do is get other people to script for you. The only reason Shadow Knight scripts for your server is because you pay him on Graal 2001. Maybe one day you should try learning to script yourself.......
Whichever holy figure is at the top of your respective religions will know that he'll save a heck of alota money that way
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #62  
Old 10-02-2001, 06:03 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
hmmm.....

Quote:
Originally posted by IcePick_2001


arg true... I wouldnt know what to do then...
tokens and tokens count ????
maybe ????
Reply With Quote
  #63  
Old 10-02-2001, 07:07 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
i realized a mistake with my old code, here is a better one

NPC Code:

if (playerenters||timeout){
if (!strcontains(#s(server.jail),#a)&&strequals(#L,ja ilcell.graal)) {
setlevel2 onlinestartlocal.graal,33,33;
}
timeout=.05;}

Reply With Quote
  #64  
Old 10-03-2001, 03:10 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Kaimetsu


Only criticism: What if their name is bigger than one word? It can happen.
you could do stuff like "say2 whatever #t(2) #t(3) blah"
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 09:30 PM.


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