Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AUTO PARTY WITH LEVEL
#1
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?
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)