Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-11-2011, 12:48 AM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
Thanks! That helped me a bunch XP. What do I put so it will show up to all players when they log on (It's basically a gui telling players about hirings and how to contact me).
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
Reply With Quote
  #2  
Old 06-11-2011, 03:57 AM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by patrickp2p View Post
Thanks! That helped me a bunch XP. What do I put so it will show up to all players when they log on (It's basically a gui telling players about hirings and how to contact me).
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.
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
  #3  
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
  #4  
Old 06-11-2011, 04:20 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by patrickp2p View Post
Thanks! That helped me a bunch XP. What do I put so it will show up to all players when they log on (It's basically a gui telling players about hirings and how to contact me).
Add the weapon to players when they log on, and show the window in the onCreated event of the weapon on clientside.
__________________
Reply With Quote
Reply


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 04:28 AM.


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