What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Exile.cs - modify totem logic to not suck

imdivesmaintank

New Member
Joined
Oct 30, 2013
Messages
342
Reaction score
0
Right now it does stupid things like summoning totems for a single normal mob or summoning repeatedly while being pounded on by mobs (causing you to die or chicken).

Theoretical logic that should work better: only summon a totem if (target.rarity >= magic and rangeToTarget > 10) or (mobsNearTarget > 4)

edit: I threw this together just now and it works pretty well. It should apply to any totem but I am only using decoy totem and since the next beta release will simply overwrite it, I didn't want to go to unnecessary and wasted effort.
Code:
RegisterTotem("Decoy Totem", ret => ((BestTarget.Rarity >= Rarity.Magic && BestTarget.Distance > 10) || (NumberOfMobsNear(BestTarget, 40, 5) && LokiPoe.ObjectManager.Me.HealthPercent > 95)));
 
Back
Top