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 11-25-2007, 10:02 PM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
kills...

Ok, I want to know if there is a way to detect who killed a player when a player dies.
Say "noob1" kills "noob2", is there a function to see that noob1 killed noob2?
I asked a few people about this, and they said it wasnt possible without a custom pk system.
But, graal somehow knows when a player kills another player, because player.kills is accurate.
So, if graals system knows when you kill someone, is there a way to know through script?
Now, I dont really care if I know the account of the person killed, I just need to know if "noob1" killed someone.
Any help would be appriciated.
Reply With Quote
  #2  
Old 11-25-2007, 10:28 PM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Check to see who was the last person to attack the victim, I don't know if you can do it without a custom pk system.
Reply With Quote
  #3  
Old 11-25-2007, 10:43 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by oo_jazz_oo View Post
But, graal somehow knows when a player kills another player, because player.kills is accurate.
Yep. However, I don't think that this is accessible through GraalScript.

Unless some kind of new built-in flag for the default pk system is introduced that shows the last attacker and/or the last person who killed you, you'll need a custom pk system.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 11-25-2007, 11:27 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I remember when I stumbled upon this problem. The built in Graal system, there is no way to detect, but, skyld wrote an awesome Player HP scripts (which can be found in the code gallery) which solved this problem.
__________________
Deep into the Darkness peering...
Reply With Quote
  #5  
Old 11-26-2007, 01:24 AM
MrAnonymous_P2P MrAnonymous_P2P is offline
Retired Oldbie
MrAnonymous_P2P's Avatar
Join Date: Oct 2006
Location: Cambodia
Posts: 722
MrAnonymous_P2P is an unknown quantity at this point
Quote:
Originally Posted by Angel_Light View Post
I remember when I stumbled upon this problem. The built in Graal system, there is no way to detect, but, skyld wrote an awesome Player HP scripts (which can be found in the code gallery) which solved this problem.
Go Skyld
Reply With Quote
  #6  
Old 11-26-2007, 02:22 AM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
Quote:
Originally Posted by MrAnonymous_P2P View Post
Go Skyld
code snippets is gone now...
__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #7  
Old 11-26-2007, 10:18 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Angel_Light View Post
I remember when I stumbled upon this problem. The built in Graal system, there is no way to detect, but, skyld wrote an awesome Player HP scripts (which can be found in the code gallery) which solved this problem.
http://forums.graalonline.com/forums...ad.php?t=68271
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 04:56 AM.


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