FANDOM


Created by Taz.

Using "RC_Core.rcm"
; Morgance Online 0.1
; Date/Time: 9:24:12 PM on 8/1/2012
; By Dan Seguin on TAZCO-PC
;Pvp organizer to start player in the right battle ground
Function Main()
Player = Actor()
Target = ContextActor()


    Chatbox$ = OpenDialog(Player, Target, "Pvp Organizer")

    DialogOutPut(Player, ChatBox, "Welcome, would you like to join a PvP BattleGround?", 200, 156, 23)
    POption$ = DialogInput(Player, Chatbox, "Close,Enter 1 vs 5 capture the flag,Enter hold the flag")
    
         If (POption = 1) ; close dialog
             CloseDialog(Player, ChatBox)
            ; OutPut(Player, "NOTE super global is being changed back to 0 here for testing", 255, 0, 0)
            ; SetSuperGlobal(2, 0) ;using for debuging
             Return
           
         EndIf
 
     CloseDialog(Player, Chatbox)


    If (POption = 2) ;send player to 1 vs 5 capture the flag
        ThreadExecute("Pvp_Battle_Organizer", "Main", Player, Target)
    Endif
 
 
 
 If (POption = 3) ;send player to 1 vs 5 capture the flag
 ;send to function HoldFlag
ThreadExecute("Pvp_Battle_Organizer", "HoldFlag", Player, Target)
Endif





Return
End Function