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 07-19-2002, 09:18 PM
Glory Glory is offline
Banned
Glory's Avatar
Join Date: Mar 2002
Location: Sunnydale
Posts: 1,365
Glory is on a distinguished road
Send a message via AIM to Glory
Noplayerkilling?

I made an npc so...

if (weaponfired)
putnpc bush.gif,noplayerkilling.txt,playerx,player;

and inside the txt is noplayerkilling; when I updatethe level it stays nonplayerkilling anyhelp?
Reply With Quote
  #2  
Old 07-19-2002, 09:29 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name

well, you shouldn't update the level, it will delete the NPC

and you should have
NPC Code:

if (created) {
noplayerkilling;
}

__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 07-19-2002, 09:49 PM
Glory Glory is offline
Banned
Glory's Avatar
Join Date: Mar 2002
Location: Sunnydale
Posts: 1,365
Glory is on a distinguished road
Send a message via AIM to Glory
Quote:
Originally posted by screen_name

well, you shouldn't update the level, it will delete the NPC

and you should have
NPC Code:

if (created) {
noplayerkilling;
}

Yes but I want tit to delete the npc for like event u put it and it makes it no pk then u upd and its pk but it stays pk.
Reply With Quote
  #4  
Old 07-20-2002, 02:32 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
then

NPC Code:

if (created) {
noplayerkilling;
}

if (playerchats && strequals(#c,pk now) && strequals(#g,Events Team)) {
destoy;
}

__________________
[signature]insert here[/signature]
Reply With Quote
  #5  
Old 07-20-2002, 05:15 PM
Xbob42 Xbob42 is offline
Registered User
Join Date: May 2002
Posts: 429
Xbob42 is on a distinguished road
Question

Would it be possible to make an entire playerworld a nopkzone without putting this script in every level.
if(created){
noplayerkilling;
}

would you have to do something where it has a timeout and keeps it that way. Maybe something like
if(playerenters){toweapons *nopking;timeout=.05;}
if(timeout){if(isweapon){noplayerkilling;}timeout= .05;}

or is there some other ways to doing it. I just typed that in there so I'm not sure if that would work or not.
__________________
Criminal uses this account to post.
Reply With Quote
  #6  
Old 07-20-2002, 05:19 PM
Xbob42 Xbob42 is offline
Registered User
Join Date: May 2002
Posts: 429
Xbob42 is on a distinguished road
I have another question similar to the one I posted above it. It's a little bit different though.

Would it be possible to make it where players can not be pked by others and not be able to pk others.

What I'm saying is if you are given an option of being able to not be pked or pk, or can choose to be able to be pked and pk others.

I think this would be a nice option for players to be able to choose when getting on a playerworld. So anyone knows if that can be done or not?
__________________
Criminal uses this account to post.
Reply With Quote
  #7  
Old 07-20-2002, 09:23 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
well the npc weapon is what you should do

but you should make system npcs start with -, so they are hidden

and you dont need to call a timeout, just a playerenter

NPC Code:

if (playertouchsme) {
toweapons -nopk;
}

if (playerenters && isweapon) {
noplayerkilling;
}



kai, can weapons makes levels nopk zones?
__________________
[signature]insert here[/signature]
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 06:38 AM.


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