• 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!

[Action] doItemSetAttribute(MAGIC LEVEL)

trollebror

Developer
Joined
Aug 8, 2009
Messages
362
Reaction score
58
Location
Sweden, Linköping
Title says it all pretty much.

These are the attributes I've found:
-getItemAttribute(uid, key)
-attribute key "aid" = return the action id
-attribute key "uid" = return the unique id
-attribute key "name" = return the item name
-attribute key "pluralname" = return the item plural name (gold conin -> gold coins)
-attribute key "description" = return the item description
-attribute key "article" = return the item article
-attribute key "text" = return the item text
-attribute key "writer" = return the item writer
-attribute key "date" = return the item data where was writed
-attribute key "depotid" = return the item depot id
-attribute key "weight" = return the item weight
-attribute key "attack" = return the item attack
-attribute key "defense" = return the item defense
-attribute key "extraattack" = return the item extra attack
-attribute key "extradefense" = return the item extra defense
-attribute key "armor" = return the item armor
-attribute key "attackspeed" = return the item attackspeed
-attribute key "hitchance" = return the item hitchance
-attribute key "shootrange" = return the item shoot range
-attribute key "charges" = return the item charges

--------not confirmed

-attribute key "weapontype" = return the item weapontype
-attribute key "slottype" = return the item slot type

If there are no attribute for this, how can it be made another way? Script way, not in item.xml. Cheers!
 
I didnt find a matching attribute in sources.

So I think this could be done like that:
doItemSetAttribute(item, "magiclevelbonus", x)
Then add the item to movements.xml and add a script which adds the magic levels if equiped.
 
By editing "bool MoveEvent::EquipItem(MoveEvent* moveEvent, Player* player, Item* item, slots_t slot, bool isCheck)" to check for items with "magiclevel" attribute set.
 
Back
Top