Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 01:05 AM.


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