View Single Post
  #4  
Old 05-23-2009, 06:55 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by cbk1994 View Post
Awesome idea; it could also be used to solve some problems with items stored in flags (e.g. cutting off when you update with RC), though I can't think of a perfect way right now, since this would still require you to use text files. I suppose you could do something like

PHP Code:
function onPlayerAttributesUpdated(pl) {
  
temp.items.loadVars("players/" pl.account);
  
  for (
temp.item items.getDynamicVarNames()) {
    
pl.clientr.item.(@ item[0]) = {item[1], item[2], [...]};
  }

Yep, if you have an item system or any other system using variables with a value length over 255, you could use the event to fix the variable.
__________________
Reply With Quote