CreatureEvent [TFS 1.1] Fast Travel To Unlocked Locations, modalwindow

Discussion in 'GlobalEvents, Spells & CreatureEvents' started by RazorBlade, Apr 4, 2015.

  1. RazorBlade

    RazorBlade Snek Premium User

    Joined:
    Nov 7, 2009
    Messages:
    2,010
    Likes Received:
    600
    Best Answers:
    0
    Code (Text):
    1.  
    2. if item.actionid > 37100 and item.actionid < 38000 or item.actionid > 5000 and item.actionid < 5005 then
    3. player:sendLocationWindow()
    4. else
    5. player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You cannot fast travel while in combat.")
    6. end
    7.  
    Might want to remove the else statement entirely, as there is not actually a check for battle in this case.
     
  2. HeberPcL

    HeberPcL [PowerOT.com.br]

    Joined:
    Aug 21, 2007
    Messages:
    1,275
    Likes Received:
    38
    Best Answers:
    0
    Nicee!!
     
  3. BugaS

    BugaS Donżuan

    Joined:
    Mar 12, 2009
    Messages:
    1,196
    Likes Received:
    8
    Best Answers:
    0
    Is it possible for 0.4? Or something similar?
     
  4. RazorBlade

    RazorBlade Snek Premium User

    Joined:
    Nov 7, 2009
    Messages:
    2,010
    Likes Received:
    600
    Best Answers:
    0
    No. Modalwindows didn't exist in 0.4. Stop using outdated distros.
     

Share This Page

Loading...