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 09-17-2001, 12:02 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Police Script

Something is wrong, its all screwed up and wont set the server string, it wont even respond to me. And yes, this does work offline, [edit]with[/edit] the account stuff and everything, because it would work earlier but now it wont. HELP!

Quote:
// Graal2001 NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head1.gif;
setcharprop #C0,orange;
setcharprop #C1,red;
setcharprop #C2,darkred;
setcharprop #C3,red;
setcharprop #C4,pink;
setcharprop #n,Police (Test);
setcharprop #2,noshield.gif;
shieldpower = 1;
dir = 2;
this.jailing=0;
}

if(#a=Reese_2001||#a=ArmadeusWarlock||#g=GP&&this. jailing=0){
if(strequals(#c,reset)){
this.jailing=0;
}
if(strequals(#c,Jail Player)){
message Account Name?;
setplayerprop #c,;
this.jailing=1;
}
if(this.jailing=1&&playerchats&&!strequals(#c,jail player)){
setstring server.mostwanted,#c;
sleep 0.01;
message The player has been jailed/will be jailed when he returns online!;
this.jailing=0;
}
}
this doesnt jail the people, but i know how to do that with this script, so pleas,e tell me why it wont set the strings?

Last edited by ArmadeusWarlock; 09-17-2001 at 12:04 AM..
Reply With Quote
  #2  
Old 09-17-2001, 12:13 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Unhappy ...

Can you please at least tell me where I screwed up?
Reply With Quote
  #3  
Old 09-17-2001, 12:22 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
hmmm...

I think I know what you mean. Ill go try it real quick.
Reply With Quote
  #4  
Old 09-17-2001, 12:25 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
lol. Whoops, I know what you mean. I forgot about strequals at that time -_-.
Thanks
Reply With Quote
  #5  
Old 09-17-2001, 12:26 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Still doesnt fix problem. Right when i say Jail Player, it says "the player has been jailed" and all that.
Reply With Quote
  #6  
Old 09-17-2001, 12:29 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
And the server.string still isnt being set


sorry for ing and not just editting one post instead of making 500 new ones each time i discover a problem
Reply With Quote
  #7  
Old 09-17-2001, 12:42 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
ok



I finally figured it out, I rewrote the whole script so it works plenty good now. Thx for your help.
Reply With Quote
  #8  
Old 09-17-2001, 12:45 AM
LordMatt LordMatt is offline
V Avatar
LordMatt's Avatar
Join Date: Jun 2001
Location: Texas
Posts: 954
LordMatt is on a distinguished road
Send a message via AIM to LordMatt
Re: ok

Quote:
Originally posted by ArmadeusWarlock


I finally figured it out, I rewrote the whole script so it works plenty good now. Thx for your help.
could you send it to me in fourm pm?
__________________
-Matt
Reply With Quote
  #9  
Old 09-17-2001, 12:47 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
...

lol.

no
i wont
if you want it, script one oyurself, its really not all that hard, i was just half awake (didnt get home early last night)
Reply With Quote
  #10  
Old 09-20-2001, 09:54 AM
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
try this ...

you could do ... this is very simple and easy ...

for you player system or NPC server put:

if (strcontains(#a,#s,server.jailaccount) && !strequals(#L,jailceel.graal)) {set jailed;setlevel2 32,32,jailcell.graal;}

On the NPC itself put

if (weaponfired) {
setstring server.jailaccount,#c;
}

So the Gp says the account name ... fires the weapon and the person will be sent to jail ... (i think)
i am half asleep so its probably wrong
Reply With Quote
  #11  
Old 09-20-2001, 10:07 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
ummmm

That would work, especially if they are far from a police dude. I was wondering how I could do that, and thats not a bad idea.

My System NPC is gonna b huge by the time i get done =(
Reply With Quote
  #12  
Old 09-21-2001, 07:12 AM
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
contact

contact me on aim and i will explain it further if you want ...
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 02:46 PM.


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