• 0
Sign in to follow this  
Screwdriver

Adding Barricades

Question

[email protected],75,104,0[TAB] script[TAB] barricade[TAB] -1,{
OnWhisperGlobal:
if(@whispervar0$ == "START") {
OnSpawn:
setwall "[email protected]",76,104,8,6,0,"barricade";
guardian "[email protected]",77,104," ",1905,"barricade::OnBarrierDestroyed"; //24;
guardian "[email protected]",78,104," ",1905,"barricade::OnBarrierDestroyed"; //25;
guardian "[email protected]",79,104," ",1905,"barricade::OnBarrierDestroyed"; //26;
guardian "[email protected]",80,104," ",1905,"barricade::OnBarrierDestroyed"; //27;
guardian "[email protected]",81,104," ",1905,"barricade::OnBarrierDestroyed"; //28;
guardian "[email protected]",82,104," ",1905,"barricade::OnBarrierDestroyed"; //29;
guardian "[email protected]",83,104," ",1905,"barricade::OnBarrierDestroyed"; //30;
end;
OnDisable:
delwall "barricade";
killmonster "[email protected]","barricade::OnBarrierDestroyed";
end;
OnBarrierDestroyed:
end;
}
}

I whisper "NPC:barricade" saying "START", but mapserver says;

"mob_spawn_guardian: No castle set at map [email protected]"

I set it as a castle in castle_db.txt

Thanks for your help! /ok

How could I set this map as a castle to stop error?

Edited by Screwdriver

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

revisited this link:

Improvised to make it work:

 

[email protected],83,112,5    script    barricade     100,{

setwall "[email protected]",76,104,8,6,0,"EmpBarr";
monster "[email protected]",83,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //24;
monster "[email protected]",82,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //25;
monster "[email protected]",81,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //26;
monster "[email protected]",80,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //27;
monster "[email protected]",79,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //28;
monster "[email protected]",78,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //29;
monster "[email protected]",77,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //30;
monster "[email protected]",76,105,"Barricade",1905,1,"barricade::OnBarrierDestroyed"; //31;
end;

OnBarrierDestroyed:
set .barrdead, .barrdead-1;
if (.barrdead==0) {
delwall "EmpBarr";
announce "A wall has been broken!",bc_area;

else {
 end;
}
OnInit:
set .barrdead, 8;
}

Share this post


Link to post
Share on other sites

try use monster ??? or spawn it as NPC since you are just using it to display there is a "wall"

Share this post


Link to post
Share on other sites

try use monster ??? or spawn it as NPC since you are just using it to display there is a "wall"

I created the wall after the barricades, so now I can kill them before I walk anywhere, but it's not letting me "Delwall"

setwall "[email protected]",76,104,8,6,0,"EmpBarr";
monster "[email protected]",83,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //24;
monster "[email protected]",82,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //25;
monster "[email protected]",81,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //26;
monster "[email protected]",80,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //27;
monster "[email protected]",79,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //28;
monster "[email protected]",78,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //29;
monster "[email protected]",77,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //30;
monster "[email protected]",76,105,"Barricade",1905,1,"EmpEvent::OnBarrierDestroyed"; //31;
end;
OnBarrierDestroyed:
set .barrdead, .barrdead-1;
if (.barrdead==0) {
delwall "EmpBarr";
announce "A wall has been broken!",bc_area;
} else {
 end;
{

I'm not getting any errors, the wall just won't go away /oops

Thanks again :D

Could anyone help me delwall, so I can walk past them? /ok

I got everything I needed.

SOLVED.

Edited by Screwdriver

Share this post


Link to post
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.

Loading...
Sign in to follow this