Hello.
I want to create one AntiHarm zone into Market but do not know how, because I have not experienced with this metal and have no idea what to do. I tried NoCombat 1 but it does not work.
Tell my where to begin.
Thank you.
Anti-Harm Zone
Re: Anti-Harm Zone
oh man, so many ways (cause POL best emu ever) =)
1. regions.cfg
# EnterScript script path
# LeaveScript script path
you can setobjproerpty(who,"prop1") by EnterScript and eraseobjproperty(who,"prop1"); by LeaveScript
. in combat pkg in mainhitscript.src set:
if(getobjproperty(who,"prop1")) return; endif
2. create your library - market_lib.inc, put it include folder
function chk_market(who)
if ((who.x <= 5928) and (who.y <= 587) and // market zone. chk it by .where
(who.x >= 5904) and (who.y >= 568))
return 1;
endif
endfunction
use this function like: if(chk_market(who)) broadcast("POL best ever!"); endif
AND MAIN THING - dont forget to say THANKS to POL devs )))
1. regions.cfg
# EnterScript script path
# LeaveScript script path
you can setobjproerpty(who,"prop1") by EnterScript and eraseobjproperty(who,"prop1"); by LeaveScript
. in combat pkg in mainhitscript.src set:
if(getobjproperty(who,"prop1")) return; endif
2. create your library - market_lib.inc, put it include folder
function chk_market(who)
if ((who.x <= 5928) and (who.y <= 587) and // market zone. chk it by .where
(who.x >= 5904) and (who.y >= 568))
return 1;
endif
endfunction
use this function like: if(chk_market(who)) broadcast("POL best ever!"); endif
AND MAIN THING - dont forget to say THANKS to POL devs )))
Re: Anti-Harm Zone
Thank you very much:)atreiu wrote:oh man, so many ways (cause POL best emu ever) =)
1. regions.cfg
# EnterScript script path
# LeaveScript script path
you can setobjproerpty(who,"prop1") by EnterScript and eraseobjproperty(who,"prop1"); by LeaveScript
. in combat pkg in mainhitscript.src set:
if(getobjproperty(who,"prop1")) return; endif
2. create your library - market_lib.inc, put it include folder
function chk_market(who)
if ((who.x <= 5928) and (who.y <= 587) and // market zone. chk it by .where
(who.x >= 5904) and (who.y >= 568))
return 1;
endif
endfunction
use this function like: if(chk_market(who)) broadcast("POL best ever!"); endif
AND MAIN THING - dont forget to say THANKS to POL devs )))
I'll create one except
---------------------
Спасибо большое
Я всё зделал кроме
Code: Select all
# EnterScript script path
# LeaveScript script path
you can setobjproerpty(who,"prop1") by EnterScript and eraseobjproperty(who,"prop1"); by LeaveScriptSorry that did not immediately written.
------------------------------------------
Я не понял как оно должно выглядеть
Извените что сразу не написал.
Re: Anti-Harm Zone
unfortunately i dont remember the structure of 095.
Are you from Russia?
-------------------
братан ты русский?
actually i cant understand what you dont understand =)
"script path" - do you know what this mean?
you create in.src
program good_program1(who)
setobjproperty(who,"#in_market",1);
endprogram
and create out.src
program actually_the_name_no_matter_123(who)
eraseobjproperty(who,"#in_market");
endprogram
in cofig you must set
EnterScript <path to in.src>
LeaveScript <path to out.src>
Are you from Russia?
-------------------
братан ты русский?
actually i cant understand what you dont understand =)
"script path" - do you know what this mean?
you create in.src
program good_program1(who)
setobjproperty(who,"#in_market",1);
endprogram
and create out.src
program actually_the_name_no_matter_123(who)
eraseobjproperty(who,"#in_market");
endprogram
in cofig you must set
EnterScript <path to in.src>
LeaveScript <path to out.src>
Re: Anti-Harm Zone
yep 095 dont have enterscript etc
then use my second variant.
then use my second variant.
Re: Anti-Harm Zone
With that said in mind , is there a way to Have harm done to NPC's like monsters eg , but not players anywhere?