BBot - The best bot of the world
AUTO PARTY WITH LEVEL - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: AUTO PARTY WITH LEVEL (/thread-21051.html)



AUTO PARTY WITH LEVEL - micheel15 - 05-08-2019

I'm trying to create a macro that tells the player "PT" to the party leader,
leader will check the player's level if it is above 300 he will give the party

I tested like this :

When.PlayerMessage(Invite, pt)
Exit()

{Invite}
LvlID:=Creature.ByName(!Message.Author.Level)
!LvlID>=300
Party.Invite(!LvlID)
AuthorID:=Creature.ByName(!Message.Author.Name)
!AuthorID<>0
HUD.Display(AutoParty triggered for !Message.Author.Name \(!Message.Author.Level\) with id !AuthorID)
Party.Status(!AuthorID)==:None
HUD.Display(AutoParty inviting !Message.Author.Name \(!Message.Author.Level\) with id !AuthorID)
Party.Invite(!AuthorID)

Can someone help me fix it?


RE: AUTO PARTY WITH LEVEL - MegaNo0body - 05-11-2019

Creature.ByName will return an ID not the LEVEL.


Currently theres no way to know a creature level, only estimate it by its speed.

You want to use a combination of Creature.ByName and Creature.Speed