Thread: Npc db
View Single Post
  #6  
Old 01-11-2009, 05:18 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Seich View Post
Thank you, that's great, I didn't know that I could store arrays in flags, well I simply never tried that.

I still have one question, how can I use a dynamic flag name? like on my example with the number or, that isn't possible?
PHP Code:
this.(@ "foo_" s) = var;
(@ 
"this." "_foo") = var;
findNPC("NPC").(@ "foo_" s) = var;

// You can also use makevar, but the above way is generally preferred:

makevar("this.foo_" s) = var; 
__________________
Reply With Quote