• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Element attribute

  • Thread starter Thread starter verdehile95
  • Start date Start date
V

verdehile95

Guest
Hello, is there a script for an item that will randomly add one of these attributes to the weapon? {key = "elementEarth", name = "earth"}, {key = "elementFire", name = "fire"}, {key = "elementIce", name = "ice"}, {key = "elementEnergy", name = "energy"}, {key = "elementHoly", name = "holy"}, {key = "elementDeath", name = "death"}, {key = "elementPhysical", name = "physical"}
 

Attachments

Hello, is there a script for an item that will randomly add one of these attributes to the weapon?
Element damage is only loaded from items.xml (or Lua on new servers) ex. Fire Sword: <attribute key="elementFire" value="11" />
It's not stored anywhere, when item saves in database, so it can't be changed for given item.
You would need to rewrite C++ to make it store/load element damage from database and then make it use given item value instead items.xml value.
 
Back
Top