Jump to content
  • 0

Barricade script


50ShadesOfGrey

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  09/14/12
  • Last Seen:  

Hello, I'm attempting to create the barricades that are currently in WoE SE I believe? Except, I'd like to have them in a different map and position?

Would anyone mind helping me with this?

I got this, but it doesn't accomplish much..

- script Barricade 78,{
OnInit:

donpcevent "Barricade::OnSpawn";
end;

OnSpawn:

setcell "phang_cas01",69,34,73,34,cell_walkable,0; //non walkable
monster "phang_cas01",69,34,""+getmonsterinfo(1905,0)+"",1905,1,"Barricade::OnBossDead";
monster "phang_cas01",70,34,""+getmonsterinfo(1905,0)+"",1905,1,"Barricade::OnBossDead";
monster "phang_cas01",71,34,""+getmonsterinfo(1905,0)+"",1905,1,"Barricade::OnBossDead";
monster "phang_cas01",72,34,""+getmonsterinfo(1905,0)+"",1905,1,"Barricade::OnBossDead";
monster "phang_cas01",73,34,""+getmonsterinfo(1905,0)+"",1905,1,"Barricade::OnBossDead";    

set $@monster_Barricade1,5; //need to destroy all barricades for enter
OnBossDead:

set $@monster_Barricade1, $@monster_Barricade1-1;
if($@monster_Barricade1==0) {


mapannounce "phang_cas01","First Gate Destroyed! ",0,0x6CC6666;}
setcell "phang_cas01",69,34,73,34,cell_walkable,1; //walkable
sleep2 120000;
monster "phang_cas01",71,37,""+getmonsterinfo(3927,0)+"",3927,1,"Barricade::OnBossDead2";
end; 
}

/Edit: I'm adding these to a different map, which will be a wall of barricades. The people will have to break the barricades to pass through.

I changed the entire script, so I just have the barricade along with a setwall.. It doesn't allow me to attack the barricade though?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

copy the same sript but edit the mapname and npc name ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.04
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

hmmm.. i know that map. its mine!. ~.~

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...