Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 06-11-2011, 05:01 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by iBeatz View Post
I suppose you could call a function inside the GUI script from the NPC-Control when the player logs in ie. this goes in the NPC-Control:

PHP Code:
function onActionPlayerOnline(){
 
findWeapon("your weapon name").Test();

Replace the function Test() with the function that shows/activates the GUI in the script, and make sure that the function in the GUI script is a public function so that other NPCs can access it.
excessively wasteful, should just be in a weapon players have upon login, and the showing of the GUI should be done in onCreated event clientside
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:52 PM.


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