Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Few questions (https://forums.graalonline.com/forums/showthread.php?t=84986)

FabriceNL 04-04-2009 12:24 PM

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.

[email protected] 04-04-2009 12:28 PM

I'm not too sure on the '"' issue, sorry.

However, you'd need
HTML Code:

function Topmenu.onSelect(params) {
}


FabriceNL 04-04-2009 12:44 PM

Thank you, still weird its like the game blocks my "

fragman85 04-04-2009 12:58 PM

Use next time please :o

DuBsTeRmAn 04-04-2009 01:11 PM

Fabrice your dutch?! :D

Anyway, Press SHIFT + '/" and you'll get "

FabriceNL 04-04-2009 02:20 PM

ah works, thank you!! and yes i'm dutch.

DuBsTeRmAn 04-04-2009 02:25 PM

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


All times are GMT +2. The time now is 08:03 PM.

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