Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   item naming [mudlib] (https://forums.graalonline.com/forums/showthread.php?t=80459)

[email protected] 07-12-2008 07:20 PM

item naming [mudlib]
 
obviously i need to create a way so it'll store each item as a new different flag, can anyone think of a good way of doing this?

zokemon 07-12-2008 07:31 PM

Are talking about doing like a slot system where each item takes up a certain "item slot"? In that case just end each item slot variable with a number (item0, item1, item2, etc.).

Also, you didn't read Skyld's thread, huh? :P

cbk1994 07-12-2008 07:40 PM

A "unique" id for each item ... for example, each time you create a new item, serverr.itemid goes up by one, and that is the ID for that item.

[email protected] 07-12-2008 07:41 PM

no, i don't see the point he is trying to make tbh

i like the idea actually, i was going to save them something like
itemname=
but no, i like item0/1 depending on the players current item count, didn't see it like that, ty ^^ ^^

zokemon 07-12-2008 08:55 PM

Uhh, not quite what I meant, but okay.


All times are GMT +2. The time now is 02:35 PM.

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