Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   kills... (https://forums.graalonline.com/forums/showthread.php?t=77701)

oo_jazz_oo 11-25-2007 10:02 PM

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.

Rapidwolve24 11-25-2007 10:28 PM

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.

napo_p2p 11-25-2007 10:43 PM

Quote:

Originally Posted by oo_jazz_oo (Post 1360393)
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.

Angel_Light 11-25-2007 11:27 PM

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.

MrAnonymous_P2P 11-26-2007 01:24 AM

Quote:

Originally Posted by Angel_Light (Post 1360406)
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 >_<

Knightmare1 11-26-2007 02:22 AM

Quote:

Originally Posted by MrAnonymous_P2P (Post 1360428)
Go Skyld >_<

code snippets is gone now...

Skyld 11-26-2007 10:18 AM

Quote:

Originally Posted by Angel_Light (Post 1360406)
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


All times are GMT +2. The time now is 12:57 AM.

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