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 04-04-2009, 12:24 PM
FabriceNL FabriceNL is offline
Registered User
Join Date: Apr 2009
Posts: 4
FabriceNL is on a distinguished road
Send a message via MSN to FabriceNL
Few questions

so yes... i'm a noob and started own playerworld, simply cause i love roleplaying and valkoria still ain't my kind of game, no offense great job tho.

so enough about that, i've been reading trough codes for days and learning basic and slow but steady i'm getting things done, but there a few things i can't find anything about..

I'm using guimenuctrl and only thing i can find about it is on graal bible but it doesn't explain how to use the onselect, so i'm stuck.

NPC Code:
//#CLIENTSIDE
function onCreated()
{
new GuiMenuCtrl("Topmenu") {
profile = GuiBlueTextEditProfile;
x = 0;
y = 0;
width = 2000;
height = 20;
clearmenus();
with (addmenu("Charachter")) {
profile = GuiBluePopUpMenuProfile;
textprofile = GuiBlueTextListProfile;
addrow(0,"Lore");
addrow(0,"Inventory [Q]");
}
with (addmenu("Roleplaying")) {
profile = GuiBluePopUpMenuProfile;
textprofile = GuiBlueTextListProfile;
addrow(0,"");
}
with (addmenu("Events")) {
profile = GuiBluePopUpMenuProfile;
textprofile = GuiBlueTextListProfile;
addrow(0,"Upcoming events:");
addrow(-1,"-");
addrow(-1,"Past events:");
addrow(-1,"-");
addrow(-1,"Weekly events");
}
with (addmenu("Emotes")) {
profile = GuiBluePopUpMenuProfile;
textprofile = GuiBlueTextListProfile;
addrow(0,"");
}
with (addmenu("Help")) {
profile = GuiBluePopUpMenuProfile;
textprofile = GuiBlueTextListProfile;
addrow(0,"Staff");
addrow(1,"F.A.Q");
addrow(0,"Tutorial");
addrow(0,"Commands");
addrow(0,"Website");
addrow(0,"Suggestions");
}
}
}



the menu works but i have no idea how to make the link to for example inventory, as there only codes and tutorials about popups and tabs.

btw, quick question... why can't i use " inside scripts ? my keyboard just won't place it :S

and don't do the code for me, just help me with it.
Reply With Quote
  #2  
Old 04-04-2009, 12:28 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
I'm not too sure on the '"' issue, sorry.

However, you'd need
HTML Code:
function Topmenu.onSelect(params) {
}
Reply With Quote
  #3  
Old 04-04-2009, 12:44 PM
FabriceNL FabriceNL is offline
Registered User
Join Date: Apr 2009
Posts: 4
FabriceNL is on a distinguished road
Send a message via MSN to FabriceNL
Thank you, still weird its like the game blocks my "
Reply With Quote
  #4  
Old 04-04-2009, 12:58 PM
fragman85 fragman85 is offline
Banned
Join Date: Mar 2009
Location: Switzerland
Posts: 261
fragman85 is on a distinguished road
Use next time please :o
Reply With Quote
  #5  
Old 04-04-2009, 01:11 PM
DuBsTeRmAn DuBsTeRmAn is offline
Era Manager
DuBsTeRmAn's Avatar
Join Date: Sep 2007
Location: The Netherlands
Posts: 1,367
DuBsTeRmAn is an unknown quantity at this point
Send a message via MSN to DuBsTeRmAn
Fabrice your dutch?!

Anyway, Press SHIFT + '/" and you'll get "
__________________
Name
Reply With Quote
  #6  
Old 04-04-2009, 02:20 PM
FabriceNL FabriceNL is offline
Registered User
Join Date: Apr 2009
Posts: 4
FabriceNL is on a distinguished road
Send a message via MSN to FabriceNL
ah works, thank you!! and yes i'm dutch.
Reply With Quote
  #7  
Old 04-04-2009, 02:25 PM
DuBsTeRmAn DuBsTeRmAn is offline
Era Manager
DuBsTeRmAn's Avatar
Join Date: Sep 2007
Location: The Netherlands
Posts: 1,367
DuBsTeRmAn is an unknown quantity at this point
Send a message via MSN to DuBsTeRmAn
Welkom bij de club! Nog een nederlander, Maar er is niks mis hoor met een noob zijn en een nieuwe server hebben.. Ik heb ook ooit een server gekocht en ik wist niet eens wat een RC was o.O
__________________
Name
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 05:10 AM.


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