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 02-07-2004, 06:19 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
So im working on a jailed script

For making sure they dont do unstick me i do so:

if (playerchats && strequals(#c,Unstick Me)){
setplayerprop #c, Disabled;
}

But it seems the unstick me comes out before it says disabled, and the player can unstick themself. =\

So how can i just purely cancel the text from comin out of their mouth?
Reply With Quote
  #2  
Old 02-07-2004, 06:23 AM
Thallen Thallen is offline
Banned
Thallen's Avatar
Join Date: Jun 2003
Location: Florida
Posts: 1,284
Thallen is an unknown quantity at this point
Send a message via ICQ to Thallen Send a message via AIM to Thallen Send a message via MSN to Thallen Send a message via Yahoo to Thallen
You don't need that if you just put the level in the jaillevels in your server options...
Reply With Quote
  #3  
Old 02-07-2004, 06:24 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
should work like that... i think.

in the unstick me level put a npc in there that will warp them back to jail if they manage to "unstick me" out.

and:

Make
An
Effort
To
Learn!

Problem Solving is YOUR FRIEND
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #4  
Old 02-07-2004, 06:49 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
If the script is made clientside, it will work. Serverside has some delay.
Also, don't forget to check for 'unstuck me'.
Your best bet is just putting the level in the jaillevels in the serveroptions.
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #5  
Old 02-07-2004, 04:08 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Or maybe set a jail flag.

NPC Code:

if(playerchats && strequals(#c,unstick me) && client.jailed){
say2 You're jailed;
}



The flag won't let you warp.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #6  
Old 02-07-2004, 04:32 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Do what osrs has said. (If you can't; don't make another thread about it just add it in here)
__________________
V$:CONFL16T
Reply With Quote
  #7  
Old 02-07-2004, 05:50 PM
Alexander Alexander is offline
Registered User
Join Date: Apr 2003
Location: California
Posts: 246
Alexander is on a distinguished road
Send a message via AIM to Alexander
That would only work for non trials o.o
Reply With Quote
  #8  
Old 02-07-2004, 06:03 PM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
The script has to be clientside though..=/
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #9  
Old 02-07-2004, 07:07 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Or make a clientside npc and set the player's chat in a timeout, that should work nicely.
__________________
Reply With Quote
  #10  
Old 02-07-2004, 07:08 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Alexander
That would only work for non trials o.o
Then for trials > Ban :P
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #11  
Old 02-07-2004, 08:10 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Trial users should be put on a server which isn't for the public players, just a server what has lots to do;so then you don't loose ap by pk sparring
Lame excuse but it should be done :-)
__________________
V$:CONFL16T
Reply With Quote
  #12  
Old 02-08-2004, 06:02 AM
DIABLO2099 DIABLO2099 is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 290
DIABLO2099 is on a distinguished road
Make a database NPC and save all accounts in a string. You can figure out what to do next...
__________________
-Former UnholyNation Server Manager.

Call me Xecutor.
Reply With Quote
  #13  
Old 02-08-2004, 06:05 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
That is illegal.

EDIT: Thought that was the Trail Solution.

Yea, database NPC with account names.

NPC Server that sets and warps the account to jail

NPC that says if the player isn't in jail and is out of jail, it pms RC AND jails them (PM RC to tell he was out, warning staff that he hacked out.)
__________________
- Rance Vicious
Reply With Quote
  #14  
Old 02-09-2004, 02:42 PM
Vegeta940 Vegeta940 is offline
Registered User
Join Date: Oct 2003
Location: I won't tell
Posts: 18
Vegeta940 is on a distinguished road
Send a message via AIM to Vegeta940 Send a message via Yahoo to Vegeta940
Post Hey

Dude, they may say all you have to do is put in jail lvls in ur server options but I came up with the answer to ur question a while ago on Spartica, heres the script.

//#CLIENTSIDE
if (created) {
}
if (playersays(unstick me)) {
setplayerprop #c,Disabled;
setlevel2 jail.nw,30,30;
}


Does that help at all?
Reply With Quote
  #15  
Old 02-09-2004, 02:43 PM
Vegeta940 Vegeta940 is offline
Registered User
Join Date: Oct 2003
Location: I won't tell
Posts: 18
Vegeta940 is on a distinguished road
Send a message via AIM to Vegeta940 Send a message via Yahoo to Vegeta940
Hye again

Talking to Rancid or w/e ur name is, yea i know but hes talking about lvls that arent in server options, he wants to know how to do without putting in server options.
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 07:37 AM.


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