
09-02-2013, 05:08 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,603
|
|
On line 50 of global_player.pl you'll see this, change that to the ID of your server controller NPC.
This is Version 1.0, I will be releasing more versions once I come up with more ideas.
CREDITS: Thank you Akkadius for the idea as to your targeting system on your server, thus how I got the idea for mine.
NOTE: If you find any errors or have any suggestions, feel free to message me, thanks.
Code:
if($UserTarget->GetNPCTypeID() == Server Controller ID)
Test_Console_NPC.pl: http://pastebin.com/5hMgT9cu
Test_Target_NPC.pl: http://pastebin.com/yxeScbVd
Global_Player.pl: http://pastebin.com/EQwswZ0P
P.S. Leaving in the credits line just makes it that much more special. Not really, but it'd be nice if you gave credit!
If you want to remove it, search for this:
Code:
##Little Extra -- Credits Line##
if($text=~/^#Credits$/i)
{
$client->Message(257, "The Server tells you, 'This script was written by Kingly_Krab for the public, if you leave this line in I love you.'");
$client->Message(257, "The Server tells you, 'You currently have Version 1.0 of Kingly_Krab's global_player.pl.'");
}
EDIT: Forgot to mention I didn't tell you about "#fullheal", it completely restores health, mana, and endurance.
|