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 06-30-2009, 08:07 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
Unique ID

So, I'm creating an item system with unique id's, the problem? Well, it's fairly simple, the dropping of items that're the same but with a unique ID.

I'm thinking a loop is the only way to avoid this, however what if a player is dropping more than one of the same item? So, let's say I had

999 Wooden Bows

If I were to lay 999 Wooden Bows (each of the 999 wooden bows being a unique ID for the item) how would I assign each individual ID to the 'Wooden Bow' about to be dropped without a loop?

Can anyone think of a solution? Thank you
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 04:25 AM.


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