Signup Now
Results 1 to 7 of 7
  1. #1
    Free User xyyyyllo's Avatar
    Join Date
    Dec 2013
    Posts
    95
    Reputation
    27
    Rep Power
    21

    messages like rolling a dice or eating food not in interations

    there is no way of getting messages like "-insertcharnamehere- rolled 6" or "gulp!" etc after ussing an item. i've tried both foreach newmessage m do and foreach newanimatedtext t do without any success on dice rolling (still worked for lets say chat)...

  2. #2
    Banned
    Join Date
    Dec 2013
    Location
    Porto Alegre - RS
    Posts
    524
    Reputation
    61
    Rep Power
    0
    Check the correct m.type

  3. #3
    Free User xyyyyllo's Avatar
    Join Date
    Dec 2013
    Posts
    95
    Reputation
    27
    Rep Power
    21
    eaven without m.type, just simple:

    auto(100)
    foreach newmessage m do
    print(m.content)
    end
    doesnt fire for egg eating etc..
    Last edited by xyyyyllo; 12-26-2013 at 06:05 PM.

  4. #4
    Banned
    Join Date
    Dec 2013
    Location
    Porto Alegre - RS
    Posts
    524
    Reputation
    61
    Rep Power
    0
    Use m.type too!

    Code:
    -- Credits to Anonymickey, for testing the msg typesMSG_STATUS = 0 -- Status messages (In the screen).
    MSG_DEFAULT = 1 -- Any player/npc message in Default channel.
    MSG_WHISPER = 2 -- Any player whispering.
    MSG_YELL = 3 -- Any player yelling.
    MSG_NPC = 5 -- Any NPC answers in NPC channel.
    MSG_PVT = 6 -- Private messages from other players.
    MSG_CHANNEL = 7 -- Any player message in Game/Help/Real/Tutor/Trade channel.
    MSG_RED = 15 -- Red alert messages.
    MSG_RAID,MSG_ADVANCE = 16,16 -- Any white alert message.
    MSG_WELCOME = 17 -- Game/Channel welcome messages.
    MSG_STATUSLOG = 18 -- Status messages in Server Log.
    MSG_INFO = 19 -- Green messages (like loot message) in Server Log.
    MSG_SENT = 21 -- Private messages sent by you.

  5. #5
    Free User xyyyyllo's Avatar
    Join Date
    Dec 2013
    Posts
    95
    Reputation
    27
    Rep Power
    21
    i would if i would see ANY message of "gulp!" from eating, testing it with m.type is the NEXT part.

    try it your self, ad a presistant script

    auto(100)
    foreach newmessage m do
    print(m.content)
    end
    then open the console and tibia and eat something... in theory this should print you ANY message, default, npc, red, info and eating? "if m.type" is just a condition after you get the messages
    Last edited by xyyyyllo; 12-26-2013 at 06:45 PM.

  6. #6
    Banned
    Join Date
    Dec 2013
    Location
    Porto Alegre - RS
    Posts
    524
    Reputation
    61
    Rep Power
    0
    Oh, right.


    Lucas will add it soon!

  7. #7
    Free User xyyyyllo's Avatar
    Join Date
    Dec 2013
    Posts
    95
    Reputation
    27
    Rep Power
    21
    i hope, cuz i made a almost perfect gambling script and i want to release it for free its just waiting for that message type.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •