Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-30-2010, 07:54 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
GUI Serverside Problems.

xMane/Tag :
NPC Code:
function onActionServerSide()
{
if ( params[ 0 ] == "open" )
{
Biz_PlayerControlWindow.show();
}
}
//GUI DOWN HERE \/


-Biz/Main :
NPC Code:
function Biz_PlayerControl.onAction() {
triggerServer( "gui", "xMane/Tag", "open" );
}


i get this error
Quote:
Function Biz_PlayerControlWindow.show not found at line 5 in script of xMane/Tag (in level sin_world-a8.nw at pos (68, 20))
How do i fix this?
Reply With Quote
  #2  
Old 05-30-2010, 07:56 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
You can't create GUI's on the serverside. Clientside is meant to handle all the graphical aspects of the game.

You're going to have to create the GUI's on the clientside and just send what data you need from the serverside over.
Reply With Quote
  #3  
Old 05-30-2010, 08:22 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
lol ok
Reply With Quote
  #4  
Old 05-30-2010, 08:52 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
If the GUI object is created, instead of using a trigger you can just use: Biz_PlayerControlWindow.show();

or use public functions. I.e:

WeaponA:

PHP Code:
//#CLIENTSIDE
public function tellJoke() {
  
player.chat "What's the deal with airline food?";

WeaponB:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
// Find Weapon Way
  
findweapon("WeaponA").tellJoke();
  
// Reference Way
  
(@"WeaponA").tellJoke();

__________________
Quote:
Reply With Quote
  #5  
Old 05-30-2010, 08:58 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
thanks <3
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 12:43 AM.


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