-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by kundalini313
-
-
On 9/18/2023 at 3:36 PM, Winterfox said:
I think your problem is the falltrough after the call of an OnBarDead label. This leads to one OnBarDead label calling all succeeding setcell calls that make the cells walkable.
If for example OnBarDead1 gets called, it falls through all labels until it hits the end command at the end of the file, effectivly making all non-walkable cells walkable instead of only the ones you targeted with your label.May i ask how i could fix this to make it to where you can only pass through the barricade you destroy? Is there a specific code i need to put for each barricade?
-
19 hours ago, Winterfox said:
It would be a good idea to include your script in the post.
Otherwise, it is pretty hard to help you.My Apologies here it is, for some reason after 1 barricade is destroyed it allows you to walk through them all.
OnEmpDead:
$koegid = getcharid(CHAR_ID_GUILD);
announce "The current King of Emperium Hill is the ["+ strcharinfo(PC_GUILD) +"] guild.", bc_all;
donpcevent "::OnRevKoE";
maprespawnguildid "grandarena", $koegid, 2;
killmonster "grandarena", "KoE::OnEmpDead";
sleep 500;
if (.start)
monster "grandarena",49,49, "EMPERIUM", EMPELIUM, 1, "KoE::OnEmpDead";
setcell "grandarena",45,53,45,46,cell_walkable,0; //non walkablemonster "grandarena",45,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1";
monster "grandarena",45,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1";setcell "grandarena",53,54,46,54,cell_walkable,0; //non walkable
monster "grandarena",51,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2";
monster "grandarena",48,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2";setcell "grandarena",54,46,54,53,cell_walkable,0; //non walkable
monster "grandarena",54,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3";
monster "grandarena",54,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3";setcell "grandarena",46,45,53,45,cell_walkable,0; //non walkable
monster "grandarena",48,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4";
monster "grandarena",51,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4";
setcell "grandarena",42,57,42,42,cell_walkable,0; //non walkable
monster "grandarena",41,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead6";
monster "grandarena",41,55,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead6";
monster "grandarena",41,52,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead6";
monster "grandarena",41,49,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead6";
monster "grandarena",41,46,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead6";
monster "grandarena",41,43,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead6";
monster "grandarena",41,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead6";
setcell "grandarena",42,42,57,42,cell_walkable,0; //non walkable
monster "grandarena",41,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead7";
monster "grandarena",44,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead7";
monster "grandarena",47,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead7";
monster "grandarena",50,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead7";
monster "grandarena",53,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead7";
monster "grandarena",56,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead7";
monster "grandarena",58,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead7";
setcell "grandarena",56,42,57,57,cell_walkable,0; //non walkable
monster "grandarena",58,41,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead8";
monster "grandarena",58,43,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead8";
monster "grandarena",58,46,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead8";
monster "grandarena",58,49,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead8";
monster "grandarena",58,52,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead8";
monster "grandarena",58,55,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead8";
monster "grandarena",58,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead8";
setcell "grandarena",57,57,42,57,cell_walkable,0; //non walkable
monster "grandarena",41,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead9";
monster "grandarena",43,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead9";
monster "grandarena",46,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead9";
monster "grandarena",49,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead9";
monster "grandarena",52,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead9";
monster "grandarena",55,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead9";
monster "grandarena",58,58,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead9";
sleep 3000;
donpcevent "KoEbarricade::OnInit";
end;
OnBarDead1:
setcell "grandarena",45,53,45,46,cell_walkable,1;
OnBarDead2:
setcell "grandarena",53,54,46,54,cell_walkable,1;
OnBarDead3:
setcell "grandarena",54,46,54,53,cell_walkable,1;
OnBarDead4:
setcell "grandarena",46,45,53,45,cell_walkable,1;
OnBarDead5:
setcell "grandarena",71,47,71,52,cell_walkable,1;
OnBarDead6:
setcell "grandarena",43,57,54,57,cell_walkable,1;
OnBarDead7:
setcell "grandarena",42,43,42,57,cell_walkable,1;
OnBarDead8:
setcell "grandarena",56,42,42,42,cell_walkable,1;
OnBarDead9:
setcell "grandarena",57,57,42,57,cell_walkable,1;
end;
} -
how to make barricades unpassable until all destroyed?
-
i got everything working aside from it only lets you start exe with login credentials and when i put my correct credentials in , the exe opens but says unregistered account make sure credentials are correct. Idk how to fix this problem
-
i setup the patcher and i keep getting "Failed to connect to plist" error
putting barricades on KoE map
in Scripting Support
Posted
May I ask how I can have it spawn Emperium after all barricades are destroyed?