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 08-23-2006, 10:41 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
clientside on serverside

Does anyone know how I can use this on serverside?

with (Message_Text) {
addText("\n" @ client.message, true);
scrollToBottom();
}

I'm creating a somewhat message sys and I need it to update for all players.

I've tried many things but nothing I've tried has work. :/ Help if ya can. Please.
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 08-23-2006, 10:46 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
You could put it on clientside, and have it read a serverside flag.
Reply With Quote
  #3  
Old 08-23-2006, 10:52 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
GUI controls won't work serverside, full stop. Do what you are trying to do clientside, and use a triggeraction or so.
Reply With Quote
  #4  
Old 08-23-2006, 10:58 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by excaliber7388
You could put it on clientside, and have it read a serverside flag.
I could but the message list get's added to so it would eventually be to big or so.

Quote:
Originally Posted by Skyld
GUI controls won't work serverside, full stop. Do what you are trying to do clientside, and use a triggeraction or so.
I am and it doeasnt work

PHP Code:
function onActionServerSide() {
if (
params[0] == "Message") {
for (
pallplayers) {
  
p.client.message params[1SPC "-" params[2];
  
savelog2("PlayersGuiLog.txt","-" player.account " / " player.nick " - Said : " params[1] @ "; on the PMG!");  

}
}

//#CLIENTSIDE

-snip-

new 
GuiWindowCtrl(Message_Window) {
  
profile           "GuiBlueTransWindowProfile";
  
canclose          true;
  
canmove           true;
  
canresize         true;
  
extent            "200 172";
  
minextent         "150 100";
  
canminimize       true;
  
canmaximize       true;
  
x                 screenwidth-200;
  
y                 0;
  
title             true;
  
text              "Messages";
  
profile.fontSize  14;
  
profile.fontColor "255 255 255";

new 
GuiTextEditCtrl(Message_Chat) {
  
profile "GuiBlueTextEditProfile";
  
horizSizing "width";
  
vertSizing "top";
  
10;
  
Message_Window.height-28;
  
width Message_Window.width-20;
  
height 20;
  
historySize 100;
  
tabComplete true;
}

new 
GuiScrollCtrl(Message_Board) {
  
profile       "GuiBlueScrollProfile";
  
horizSizing   "width";
  
vertSizing    "height";
  
hScrollBar    "alwaysOff";
  
vScrollBar    "dynamic";
  
position      "10 25";
  
width         Message_Window.width-20;
  
height        Message_Window.height-55;
  
scrollpos     "0,2";

new 
GuiMLTextCtrl(Message_Text) {
  
profile           "GuiBlueTextProfile";
  
profile.fontSize  15;
  
position          "5 0";
  
horizSizing       "width";
  
allowcolorchars   true
  
parsetags         true
  
width             Message_Board.width-25;
  
height            Message_Board.height-5;
  
wordwrap          true
  
text              "Welcome to Niromia's Public Message Gui, also known as PMG! Type in the box below and press enter to display your public message. No foul languange please. If caught You will be banned from the PMG as see fit by the adminstrator. All message's are logged too. -Niromia";
};
};
};
}


function 
Message_Chat.onAction() {
  
this.msg Message_Chat.text;
  
this.sender player.nick;
  
triggeraction00"serverside"this.name"Message"this.msgthis.sender); 

EDIT: Help?
__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 08-24-2006 at 10:46 PM..
Reply With Quote
  #5  
Old 08-26-2006, 06:09 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Help?
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 08-27-2006, 06:27 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Someone Please help? O_o
__________________
Deep into the Darkness peering...
Reply With Quote
  #7  
Old 08-27-2006, 06:44 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Your formatting is terrible, which is one way of saying I have no idea wtf is going on in that script. I wish I could help, I hate to see someone with a problem for this long.
Here's how most people format their script here:
http://forums.graalonline.com/forums...ad.php?t=61805
It could help us or you find the problem.
Reply With Quote
  #8  
Old 08-27-2006, 06:46 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by excaliber7388
Your formatting is terrible, which is one way of saying I have no idea wtf is going on in that script. I wish I could help, I hate to see someone with a problem for this long.
Here's how most people format their script here:
http://forums.graalonline.com/forums...ad.php?t=61805
It could help us or you find the problem.
Was about to say the same. You could always use the /style command on RC if you are lazy.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #9  
Old 08-27-2006, 07:15 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I understand my formatting easier than the one you guys use. :/
__________________
Deep into the Darkness peering...
Reply With Quote
  #10  
Old 09-01-2006, 12:12 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Angel_Light
I understand my formatting easier than the one you guys use. :/
Then don't expect help. If we can't easily read and understand it, how are we going to help you?
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 01:17 PM.


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