Created by Taz.
Using "RC_Core.rcm" ; Morgance Online 0.1 ; Date/Time: 12:47:52 AM on 11/5/2012 ; By Dan Seguin on TAZCO-PC ;Basic attack to send in a pet to attack. Function Main() Player = Actor() Target = ContextActor() StoredTamedID% = Split(ActorGlobal(Player, 3), 21, "|") If (StoredTamedID > 0) ;Check Tamed Pet Health see if its still alive. TamedHP% = Attribute(StoredTamedID, "Health") If (TamedHP > 0) ;tamed npc is alive so kill it. SetActorTarget(StoredTamedID, Target) SetActorAIState(StoredTamedID, 3) Return Else OutPut(Player, "You dont have a pet out.", 255, 127, 21) Return Endif Endif End Function