View Single Post
  #4  
Old 06-07-2009, 10:35 AM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default

I've got a scripting system in place for charms that seems to work (although my testing is a little limited since I never have more than three of us on my server at once). I added a new parse->event call that takes an ItemInst* as an argument and handled calculating the multiple via perl and a $questitem->SetMultiple() function. I made a derived class from ItemInst that stored a pointer to a scaled version of the item, so that scaling only needed to be done when the multiplier actually changed. So far, I have working scripts for the Charm of the Emerald Warrior, Charm of the Brotherhood, and Charm of Exotic Speech. I never did figure out how the server is supposed to send the scaling factor to the client, so I just had it send the scaled item instead of the full stats.

I meant to post that stuff a couple of weeks ago, but the new scripting and derived ItemInst led so naturally into intelligent item scripts that I started working on that, and the whole thing got complicated very quickly. If you want, I can try to seperate out the charm stuff and post what I have.
Reply With Quote