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

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: AUTO PARTY CHECK LEVEL (/thread-21047.html)



AUTO PARTY CHECK LEVEL - micheel15 - 04-26-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?