![]() |
[SHARE] Anti-PK Patrol
3 or more guards runing around of noob city, if they found a PK they kill
ai.obj Code:
class anti_pk_patrol : guard_patrolCode:
//AntiPK PatrolCode:
npc_begin warrior 12546 [anti_pk_patrol_human] level=66 exp=271975264 acquire_exp_rate=1.8 undying=0 can_be_attacked=1 acquire_sp=15 race=castle_guard sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[shining_bow] slot_lhand=[] base_attack_type=bow base_can_penetrate=0 base_attack_range=8100 base_damage_range={0;0;80;120} base_rand_dam=30 str=99 int=21 dex=99 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=8 org_mp_regen=2.7 ground_low={80;0;10} ground_high={120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=67xx.xx146118935 org_mp=1220 base_defend=5xx.xx5040328361 base_magic_attack=5xx.xx5709791816 base_magic_defend=2xx.xx7189482006 base_physical_attack=40xx.xx431336161 physical_hit_modify=10 physical_avoid_modify=0 base_attack_speed=293 base_reuse_delay=1500 base_critical=8 magic_use_speed_modify=0 status={normal} align=-1296 collision_radius=8 collision_height=24 category={} clan={@door_clan;@aden_siege_clan} clan_help_range=1200 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[aden_bow_guard_s_hu]} corpse_time=7 no_sleep_mode=0 npc_end |
nice job..
but.. what about clinet data ? or this npc already exists in npcgrp ? |
client side dun need changes
|
Is this from pandragon's release?
|
dunno, i got it in a korean forun
|
Cool. Might want to credit them then, lol.
|
hehe nice.. I maybe use it as Floran/Giran anti pk patrol ;-DD
|
In npcpos.txt every block must end with "npcmaker_end" string.
Ex npc_begin [anti_pk_patrol_elf] pos={47715;44188;-3558;0} total=1 respawn=1min dbname=[sentinel_guard_10] dbsaving={death_time;parameters} ai=[anti_pk_patrol] WayPoints={(47715;44188;-3558);(49783;45155;-3508);(51677;46577;-3503);(51828;48507;-3480);(50596;48637;-3456);(48226;44165;-3510)} WayPointDelays={25sec;1sec;1sec;10sec;1sec;1sec} npc_end npcmaker_end |
Quote:
npcmaker_begin... npc_begin [anti_pk_patrol_elf] pos={47715;44188;-3558;0} total=1 respawn=1min dbname=[sentinel_guard_10] dbsaving={death_time;parameters} ai=[anti_pk_patrol] WayPoints={(47715;44188;-3558);(49783;45155;-3508);(51677;46577;-3503);(51828;48507;-3480);(50596;48637;-3456);(48226;44165;-3510)} WayPointDelays={25sec;1sec;1sec;10sec;1sec;1sec} npc_end npcmaker_end |
Here you guys go. From pandragon's release. :) Complete for all newbie areas.
Code:
//-------------------------------------------------------------------------------------------------------------- |
Quote:
|
That`s a npc_pos for ROD
-------------------------------------------------------------------------------------------------------------- //Date xx.xx.05 //AntiPK Patrol Ruins //---------------------------------------- territory_begin [21_19_ruins_pk] {{46924;51420;-3037;-2837};{47693;51420;-3037;-2837};{47471;51890;-3037;-2837};{46835;51620;-3037;-2837}} territory_end npcmaker_begin [21_19_Ruins_PK] //Ruins npc_begin [anti_pk_patrol_elf] pos={-19674;138320;-3888;0} total=1 respawn=1min dbname=[sentinel_guard_10] dbsaving={death_time;parameters} ai=[anti_pk_patrol] WayPoints={(-19674;138320;-3888);(-19073;139329;-3896);(-18250;142275;-3896);(-17521;144065;-3904);(-18250;142275;-3896);(-19073;139329;-3896)} WayPointDelays={5sec;5sec;5sec;5sec;5sec;5sec} npc_end npc_begin [anti_pk_patrol_elf] pos={-12815;140956;-3720;0} total=1 respawn=1min dbname=[sentinel_guard_10] dbsaving={death_time;parameters} ai=[anti_pk_patrol] WayPoints={(-12815;140956;-3720);(-13929;142146;-3688);(-15151;141802;-3896);(-16215;142436;-3904);(-15151;141802;-3896);(-13929;142146;-3688)} WayPointDelays={5sec;5sec;5sec;5sec;5sec;5sec} npc_end npcmaker_end |
lol thank for RoD ;-D we have rule NO PKing players under 20L @ newbie villages and RoD. But many people dont use it.
But how this guards patrol? it simply runing around? for what is but.. how this guards work? if they see PK they hunt him... how far? how much? can they run trought rod? because its no problem to get in RoD trought this patrol I think lol its undying=0 .. that is not coool ;-DD but.. seriously.. how u get this coordinates for creating spawns? its any tool? I hear about one.... edit: I found it buts its chinese .. and dont know how to make new ;-( .. Can you make little tut how to make waypoints? I want make this patrol around lowlevel cities like Gludio/Dion/Gludin too |
OMG ITS NOT WORKING ???
they are killing normal players too .. not only RED ;-( /if I summon one/ .. I can't catch anyone in game from npcpos..why? I wait on waypoint for few minutes and nothing... - server loads everything OK .. |
Quote:
Below i posted code of normal guards like in off. in first release npc type was warrrior thats why they where attacking all and dwarf ir orc guards were set to npcai=karik ;) Use my release safely tested and running 8) Code:
npc_begin guard 12546 [anti_pk_patrol_human] level=70 exp=4296345xx.xx5 acquire_exp_rate=0.3 undying=0 can_be_attacked=0 acquire_sp=30 race=human sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[bow] slot_lhand=[] base_attack_type=bow base_can_penetrate=0 base_attack_range=1100 base_damage_range={0;0;80;120} base_rand_dam=10 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=10 ground_low={80;0;10} ground_high={160;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=5000 base_defend=2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend=2xx.xx8467292763 base_physical_attack=15xx.xx519825567 physical_hit_modify=0 physical_avoid_modify=0 base_attack_speed=227 base_reuse_delay=500 base_critical=8 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=24 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[aden_bow_guard_s_hu]} corpse_time=7 no_sleep_mode=0 npc_end |
It might be a good ideea to make them undying=1 unless you make their dmg pretty huge because there might be playrs able to kill a guard.
|
thanks :-)
btw > I think undying=0 is OK because with shining bow..they make 3000dmg instant kill to everyone.. I think more funny will be weaker version.. also PK must have chance .] |
btw where is call to ai.obj class anti pk patrol .. if in npcdata is calling to ai from castle siege guard?
|
hmm still that anti PK kill normal players even if is set to guard.
I think that is because ai = siege guard must be set to normal guard pls never post code that is not tested/working if you say its working |
Quote:
Edit: IF u summon by command they ll attack people but spawned guards not becouse of ai=[anti_pk_patrol] in npcpos |
hmm that is really weird..
|
They work perfectly. You just need to be sure that in npcpos.txt their ai is set to anti_pk_patrol. In the npcdata.txt their ai is npc_ai={[aden_bow_guard_s_hu]} and it is ok like that.
|
When you summon them then they will be aggro to everyone.
But when they spawn as each other npc then they only hit PK's. Although i have 1 question. Is thier a way to upgrade thier notice range? Cause on the moment a pk has to run very close pass him will he shoot at the pk. Tim |
NPCData.
|
| All times are GMT. The time now is 16:19. |