Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   q menu inventory question (https://forums.graalonline.com/forums/showthread.php?t=61301)

prozac424242 09-19-2005 06:38 PM

q menu inventory question
 
I searched the forums for this but did not find anything:

How do I put items in folders in the Q menu inventory?
You know, those sacks, and when you go in the sack,
you have the option to go back, or select an npc in this category.

CheeToS2 09-19-2005 07:15 PM

Name the NPC like this: Bagname/NPCname.
Examples:
Cats/Brown Cat
Cats/Blue Cat
Cats/Tie Dye Cat

calani 09-19-2005 07:48 PM

Its the legendary Tye Dye Cat!
470hp, 230mp, 29 cha, 3str, 876exp

"That is Tye Dye Cat."
"It is likely more beautiful than you."


anyways, back on topic.
prozac, did you mean organize npcs within the normal qmenu, or are you trying to make your own?

Skyld 09-19-2005 08:24 PM

Quote:

Originally Posted by calani
Its the legendary Tye Dye Cat!
470hp, 230mp, 29 cha, 3str, 876exp

"That is Tye Dye Cat."
"It is likely more beautiful than you."

Waste. Of. MySQL. Storage.
Quote:

Originally Posted by calani
anyways, back on topic.
prozac, did you mean organize npcs within the normal qmenu, or are you trying to make your own?

Sounds like the built-in weapon menu.

prozac424242 09-21-2005 12:03 AM

trying to make my own
but when i try that it says i cannot add WEAPONS/bagname/weapon
in the rc window.
is there some serveroption to set?

also i kinda got my own q menu replacement made,
i am guessing i can parse the weapon name on the / charachter
for different 'folders'in my custom system?

napo_p2p 09-21-2005 12:06 AM

Quote:

Originally Posted by prozac424242
i cannot add WEAPONS/bagname/weapon

Do you have rw WEAPONS/*/*?

ForgottenLegacy 09-21-2005 12:19 AM

Quote:

Originally Posted by prozac424242
cannot add WEAPONS/bagname/weapon

There's something in serveropts called 'npcrights', and if it's true, which it should be for certain reasons, then you need to have rights to the individual bagname. So add "rw WEAPONS/bagname/*" to your rights list, or you can go with "rw WEAPONS/*/*" to give yourself rights to every weapon.
Quote:

Originally Posted by prozac424242
also i kinda got my own q menu replacement made,
i am guessing i can parse the weapon name on the / charachter
for different 'folders'in my custom system?

That would work. In GS2, you can use string.tokenize(delim) and have the "/" character, in quotes, as the delim. This would tokenize the string based not only on spaces, but on both spaces and the "/" character. GS1 uses the tokenize2 delims,string; command, and it works the same, but the "/" character doesn't need to be in quotes.


All times are GMT +2. The time now is 12:14 AM.

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