Is it possible to create mobile with magic weapon or armor?

Bonaccorso

Rookie
Mar 1, 2019
91
13
8
32
Is it possible to create a mobile's cs file where it's equipped not with just some, say, longsword or plate chest, but by magical armor or weapon? I tried to find examples of code but I didn't yet.
 

Falkor

Squire
Apr 11, 2018
432
171
43
wpshard.com
Shard Name
Whispering Pines
Sure. Just pick the item you want them to be equipped with and put it into the script. For example, instead of adding a simple sword to a mobile:

Code:
AddItem(new Katana());
you replace it with the name of the sword you want them to have.

Code:
AddItem(new BladeOfInsanity());
If you want magical items with varying strengths, script one with ranges for each property you want to be different and call that in the script instead.

Code:
AddItem(new NewNiftyWeaponHere());
 
  • Like
Reactions: Bonaccorso