View Single Post
  #1  
Old 04-05-2009, 06:26 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
PutNPC to DBNPC communication

How would that be done? I tried having the putNPCs findNPC the DBNPC, but I don't think they're quite reaching...could someone provide a code sample? I mean, I could probably get the desired results with server strings, but eww...

putNPC:
on created, send the DBNPC some sorta ID.
on hit or whatever, right before destroying itself, let the DBNPC know

DBNPC:
When a request comes in from a player's weapon let's say, should be able to find and manipulate the putNPCs in its list no matter where they are. Like, the player says "NPC #6587, move to the right", and it should despite the DBNPC and the player being in different levels from the putNPC.

Or am I going about my ultimate goal in the silliest way possible, and the server side of a weapon can Easily search all NPCs on the server, compile a list, and tell them what to do? :-P
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote