HelpHow to make enemy chest with drop?

Posts 1–12 of 12 · Page 1 of 1
How to make enemy chest with drop?
Hellooo i need help .. how to make chest with drops?? i see chest in shatters in real rotmg and drop bracer lol help please
1) Make a new Enemy called "Whatever Chest"
2) Make an Behavior for the Chest
3) Add Loot Behav
4) ???
5) Profit
Quote Originally Posted by cxydsaewq View Post
1) Make a new Enemy called "Whatever Chest"
2) Make an Behavior for the Chest
3) Add Loot Behav
4) ???
5) Profit
thanks but link to how to make new boss please?
Quote Originally Posted by tamas0821 View Post
thanks but link to how to make new boss please?
Look at an already existing one then bam. Copy it and change it.
This is easy. Which server u use?

- - - Updated - - -

for fab, creepylava sources:

Init("YourChestName",
new State(
new State("Idle",
new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
new TimedTransition(5000, "UnsetEffect") //=5sec with invulnerable (blue shield) and after 5sec change to without invulnerable chest :v
),
new State("UnsetEffect")
),
new Threshold(0.1, = u or players must get 10% of damage to get loot
new ItemLoot("itemname", how much % u have to loot this item
new TierLoot(tiernumber, ItemType.(Ability or Weapon or Armor), how much % u have to loot this item
)
)

- - - Updated - - -

for club599 etc... :
.Init(here this chest's number like 0x813, Behaves("yourchestname",
new RunBehaviors(
Once.Instance(SetConditionEffect.Instance(Conditio nEffectIndex.Invulnerable)), //this blue shield...
Once.Instance(new SetKey(-1,0)),

IfEqual.Instance(-1,0,
new QueuedBehavior(
CooldownExact.Instance(5000), //after 5 sec your chest unset Invulnerable (blue shield)
UnsetConditionEffect.Instance(ConditionEffectIndex .Invulnerable),
new SetKey(-1,1)
))
),
loot: new LootBehavior(LootDef.Empty,
Tuple.Create(100, new LootDef(0, 3, 1, 2, //<--- idk what is change :v @lkdjnfoskjednfblksjdfn know xD
Tuple.Create(how much % u need to loot this item, (ILoot)new ItemLoot("your item name")),
Tuple.Create(how much % u need to loot this item, (ILoot)new TierLoot(Itemtier, ItemType.(Ability, Weapon, Armor)),
))
)
)
"Really easy" like a noob knows what the fuck you are doing, also, set // in order to not currupt the code
Quote Originally Posted by sebastianfra12 View Post
CooldownExact.Instance(5000), //after 5000 sec your chest unset Invulnerable (blue shield)
Change it to 5 sec ( i know that most of the ppl will understand, but still someone will think, that he would wait 5000 sec
Quote Originally Posted by sebastianfra12 View Post
This is easy. Which server u use?

- - - Updated - - -

for fab, creepylava sources:

Init("YourChestName",
new State(
new State("Idle",
new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
new TimedTransition(5000, "UnsetEffect") //=5sec with invulnerable (blue shield) and after 5sec change to without invulnerable chest :v
),
new State("UnsetEffect")
),
new Threshold(0.1, = u or players must get 10% of damage to get loot
new ItemLoot("itemname", how much % u have to loot this item
new TierLoot(tiernumber, ItemType.(Ability or Weapon or Armor), how much % u have to loot this item
)
)

- - - Updated - - -

for club599 etc... :
.Init(here this chest's number like 0x813, Behaves("yourchestname",
new RunBehaviors(
Once.Instance(SetConditionEffect.Instance(Conditio nEffectIndex.Invulnerable)), //this blue shield...
Once.Instance(new SetKey(-1,0)),

IfEqual.Instance(-1,0,
new QueuedBehavior(
CooldownExact.Instance(5000), //after 5000 sec your chest unset Invulnerable (blue shield)
UnsetConditionEffect.Instance(ConditionEffectIndex .Invulnerable),
new SetKey(-1,1)
))
),
loot: new LootBehavior(LootDef.Empty,
Tuple.Create(100, new LootDef(0, 3, 1, 2, //<--- idk what is change :v @lkdjnfoskjednfblksjdfn know xD
Tuple.Create(how much % u need to loot this item, (ILoot)new ItemLoot("your item name")),
Tuple.Create(how much % u need to loot this item, (ILoot)new TierLoot(Itemtier, ItemType.(Ability, Weapon, Armor)),
))
)
)
You seriously suck at even coding a freaking non moving enemy.
just use vault xml for a free chest sprite, copy and paste it, change name to like, Test Chest, give it hp in the xml, make a simple behavior of just doing nothing, or even give it a taunt if you wanna make it look kewl, now make the behavior, make sure its got the same name as Test Chest so when u spawn one, and kill it, it knows to drop the loot you give it.

this should be at bottom of behavior

new Threshold(0.5,
new ItemLoot("Bracer of the Guardian", 1)
(btw it works for fab, sd, creepylava behavior system source etc.)
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us