Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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:48 PM.


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