Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I need to know.. (https://forums.graalonline.com/forums/showthread.php?t=13484)

10-02-2001 04:34 AM

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 :megaeek:

entravial 10-02-2001 04:41 AM

~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 ^_^

10-02-2001 04:42 AM

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?

10-02-2001 04:48 AM

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....

10-02-2001 04:51 AM

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....

ArmadeusWarlock 10-02-2001 04:52 AM

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.

ArmadeusWarlock 10-02-2001 04:55 AM

But then you would bother us on how to do this and that anyways, so...:(

Aknts 10-02-2001 04:57 AM

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.

10-02-2001 04:58 AM

I am learning, I am asking you people to help me so i can learn...

ArmadeusWarlock 10-02-2001 04:59 AM

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.

ArmadeusWarlock 10-02-2001 05:04 AM

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.

10-02-2001 05:05 AM

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;


10-02-2001 05:06 AM

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....

ArmadeusWarlock 10-02-2001 05:10 AM

Well, I dont see what is so hard about strings :D

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.

ArmadeusWarlock 10-02-2001 05:11 AM

And I also dont see anything about even COMPARING it with your account name =)

10-02-2001 05:15 AM

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;


btedji 10-02-2001 05:43 AM

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

10-02-2001 05:53 AM

Can you tell me how to make it warp them now?

btedji 10-02-2001 05:56 AM

NPC Code:

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



that should work

ZORG1986 10-02-2001 06:57 AM

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.......

Xaviar 10-02-2001 07:10 AM

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 :D

nyghtGT 10-02-2001 06:03 PM

hmmm.....
 
Quote:

Originally posted by IcePick_2001


arg true... I wouldnt know what to do then... :megaeek: :megaeek:

tokens and tokens count ????
maybe ????

btedji 10-02-2001 07:07 PM

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;}


btedji 10-03-2001 03:10 AM

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"


All times are GMT +2. The time now is 10:51 AM.

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