
I am about to create a new buffer for High Five (latest trunk stable version).
So my plan is to make a java script buffer (just to prevent things like Heal during in pvp etc.).
It's a html-based buffer (except heal, auto buff and remove buffs).
So what i want to do, is to place all the buffer's buffs, into an xml file because i don't want to give a database usage to this because it shall perform really badly. (imagine a server with 100+ players that they are gettings buffs whole time... hard traffic.)
So i want to make 3-4 xml files (all buffs, fighter buffs, mage buffs, archer buffs etc.) and get the buffs from there instead of the database... Do you guys know how can i do that? Actually i want to tell me how exactly can i make it in java and in html files (bypass -h npc_%ObjectId%........) to read from this xml file and how am i suppossed to write the xml file to get the informations inside?
I would really appreciate your help... <3
EDIT:
I have made it with .xsd, .xml files and with the java part that is getting these infos... my problem now is...
What call i have to put in html file to give a buff and what code should i place here:
Code: Select all
case "AutoBuffs":{ if (ValidateUse(player)) { // TODO: Add Auto Buffs } break; }