Jump to content
  • 0

what is wrong with my script?


BigBurrito

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.02
  • Content Count:  114
  • Reputation:   5
  • Joined:  07/16/16
  • Last Seen:  

I'm on my testing period first, before i proceed to write this script. This is my first time dealing with BG commands, so i dont know what is wrong with my script. I want to create two parties, and then there will be two turrets, if turret 1 is alive, i cannot touch turret 2, but it seems that i do not understand fully how this works.. here is my script. Thank you in advance.. If you can give me any suggestion, they will be welcomed.. :D

 

arathi,19,181,5    script    Fury Bounty Room#a::FBR_Alpha    418,{
OnInit:
    waitingroom "Battle Station 1 Player",2,"FB_BG_Out::OnAlphaJoin",1;
    end;

OnEnter:
    
    waitingroom2bg_single($@FBBG_id1,"arathi",21,179,"Alpha"); 
    end;    
}

arathi,181,18,7    script    Fury Bounty Room#b::FBR_Beta    418,{
OnInit:
    waitingroom "Battle Station 1 Player",2,"FB_BG_Out::OnBetaJoin",1;
    end;

OnEnter:
    waitingroom2bg_single($@FBBG_id2,"arathi",179,21,"Beta"); 
    end;    
}    

-    script    Partybg    -1,{

OnInit:

    $@turreta1 = bg_monster($@FBBG_id1,"arathi",91,33,"Alpha Turret1",1905,"Alpha Turret1::OnMyMob1Dead");
    $@turreta2 = bg_monster($@FBBG_id1,"arathi",133,27,"Alpha Turret2",1905,"Alpha Turret2::OnMyMob2Dead"); 
    setunitdata    $@turreta2,UMOB_DMGIMMUNE,1;

OnMyMob1Dead:
    setunitdata    $@turreta2,UMOB_DMGIMMUNE,0;
    end;
    }
    

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   4
  • Joined:  12/21/16
  • Last Seen:  

Use codebox thanks. Can't help since I'm not into that kind of field. Also not to mention, post the picture of the error found on your servers.

Edited by Fii
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.02
  • Content Count:  114
  • Reputation:   5
  • Joined:  07/16/16
  • Last Seen:  

Sorry, ill do codebox.. no error found.. but for some reason i think the battleground dont start.. i go to the waitingroom npc on both sides, but nothing appears to happen, therefore we both can attack both towers..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...