Jump to content

[Zero] Sanctuary zone


Agency

Recommended Posts

Posted
I'd imagine something like a circle as an example from point A -> X -> A since the first and last coordinate has to be the same in the script :)

or i don't get how it works.. or its not working ^^

Trying to fully sanctuary the Dire Maul Arena "the maul"

Posted

[Eluna]: Error Loading extension 'opt/mangos-server/bin/lua_scripts//peacekeeper.lua'

'opt/mangos-server/bin/lua_scripts//peacekeeper.lua:46: 'then' expected near 'local'

Recent error.

Posted

Change this line:

if (player:GetAreaId() == creature:GetAreaId())

to

if (player:GetAreaId() == creature:GetAreaId()) then

Currently on vacation so might take some time for me to reply

Posted

Ahh okay thanks, didn't really make it work though.

Should perhaps think of something like.. a script that would disable PvPflag at all times in a certain area ID.

Posted

I'd write you one, however I'm currently not around a computer. You could however try to write one yourself if you'd like. You would have to create a function, and register it to the on map update hook. Check if player is within area and zone, and if they are, disable the pvp flag if it is not active. Should be pretty straight forward :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use