View Single Post
  #3  
Old 08-28-2002, 03:28 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: Gift: Online Notification Script

Quote:
Originally posted by emortylone
Here is something I was playing w/ the other day on Maloria, and Cyber_X felt that it wasn't what he wanted, instead he wants me to make an online/left notification like Graal2k2 x.X I think that is HIGHLY unoriginal, and a pure waste of my scripting abilities =/ This is now in use on SL (it is in the NC, but not in use by the players, YET, so hang out there if you want to see what it can do). It has two functions:
/notify [acc]
typing this will set strings in the Control-NPC to have it send you a PM when that player comes online.
/endnotify
This part isn't yet tested, He was rushing me to get it off :'( but I am quite sure that it works, or if it doesn't, is a simple little error =P You MUST have an NPC Server to use this, as it sends the pm FROM the NPC Server, and uses a Control-NPC to store the strings. It took me a bit to make it, not a horribly long amount of time, but to adjust and make the strings work properly. I labeled what needs to be the Weapon, and what needs to be in the Control-NPC. The part with a weapon, I recommend you name it like -notify so it is invisible to the players, and do:
NPC Code:

if (actionplayeronline)
{ with (getplayer(#a))
{ if (!hasweapon(-notify))
{ addweapon -notify;}
}
}


as it gives to everyone. Enjoy, and let me know if you have viewed and/or are intending on using it XP. If you want to see some NPC Server (serversided except the triggeraction for the most part) commands, this is a good example
---Shifter
it is oxy*****ic to get the player(#a) on actionplayeronline as it is a triggeraction sent by the client therefore the script you put will be run ON the client (not clientside but whatever you do, such as addweapon scripts, will only effect that client unless you tell the script to get another players attributes, etc, etc)
Reply With Quote