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 05-25-2007, 03:39 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Thumbs down temparary noPK..

i was making a temp noPK zone, when i noticed that there is nothing to unset noPK...
is there any way to fix this problem?

so far ive used:
PHP Code:
function onPlayerEnters(){
noplayerkilling();
sleep(5);
playerkilling();

yeah, but theres no "playerkilling();" thing
__________________
**FLIP OUT**
Reply With Quote
  #2  
Old 05-25-2007, 03:56 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Sadly.. there isn't =[
__________________
- Zidane / Zidaya
Reply With Quote
  #3  
Old 05-25-2007, 03:57 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by theHAWKER View Post
i was making a temp noPK zone, when i noticed that there is nothing to unset noPK...
is there any way to fix this problem?

so far ive used:
PHP Code:
function onPlayerEnters(){
noplayerkilling();
sleep(5);
playerkilling();

yeah, but theres no "playerkilling();" thing
Nope :[

You can always do disableweapons() and enableweapons() :]
__________________
What signature? I see no signature?
Reply With Quote
  #4  
Old 05-25-2007, 04:00 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Thumbs down

Quote:
Originally Posted by Deadly_Killer View Post
Sadly.. there isn't =[
well *looks at Skyld* someone should make one...
__________________
**FLIP OUT**
Reply With Quote
  #5  
Old 05-25-2007, 04:29 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by theHAWKER View Post
well *looks at Skyld* someone should make one...
Skyld doesn't code for graal. He only scripts for graal with its scripting engine.
__________________
- Zidane / Zidaya
Reply With Quote
  #6  
Old 05-25-2007, 04:50 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
It might be possible by using putnpc and destroy. Have the NPC use putnpc to create an NPC that makes the level an NPK zone, then have it destroy itself when you want to make the level a PK zone again. I'm not sure whether or not the level would remain NPK even after the NPC is destroyed, though.
__________________
Reply With Quote
  #7  
Old 05-25-2007, 04:59 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
It would remain no-pk even after the script is destroyed ... you could have the npc /updatelevel the level though I suppose.
__________________
Reply With Quote
  #8  
Old 05-25-2007, 06:31 AM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
on era I would just use this.noplayerkilling = true/false

not sure if that's only Era though.
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #9  
Old 05-25-2007, 06:35 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by Sum41Freeeeek View Post
on era I would just use this.noplayerkilling = true/false

not sure if that's only Era though.
yeah, it is... did it join to a class or something though?
__________________
- Zidane / Zidaya
Reply With Quote
  #10  
Old 05-25-2007, 06:48 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Sum41Freeeeek View Post
on era I would just use this.noplayerkilling = true/false

not sure if that's only Era though.
I think it is Era only. I'm pretty sure everywhere else, it is a read-only variable.
But this.noplayerkilling? I thought it was level.noplayerkilling.
__________________
Do it with a DON!
Reply With Quote
  #11  
Old 05-25-2007, 07:04 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
The only way to have 'temporary noPK' would be to script your own no-pk system.

The only way to mimic this is to disableweapons and enableweapons (currently).
Reply With Quote
  #12  
Old 05-25-2007, 07:02 PM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
Quote:
Originally Posted by zokemon View Post
I think it is Era only. I'm pretty sure everywhere else, it is a read-only variable.
But this.noplayerkilling? I thought it was level.noplayerkilling.
probably, I don't remember.
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #13  
Old 05-25-2007, 10:48 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Sum41Freeeeek View Post
probably, I don't remember.
Quote:
Originally Posted by the Graal Bible
isnopkzone boolean (read only) Whether players may kill each other in this
nopkzone boolean (read only) See isnopkzone
it is level, and it is read only.
__________________
Reply With Quote
  #14  
Old 05-26-2007, 12:37 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
umkay thank you anyways guys
__________________
**FLIP OUT**
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:10 PM.


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