Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Peace Areas (https://postpacific.loc-online.com/showthread.php?t=7572)

LethaL 16.05.2007 13:21

Peace Areas
 
Hi we've just implemented Peace Areas in spawn point on our servers then people started to heal from the peace zones and summoners attacking with their pets in them so i wounder if there's any solution to that? If there isn't i'd rather remove them totally.

Thanks in advance.

m4rk 16.05.2007 15:33

There is, you ban anyone who does that... they'll stop doing it :)

LethaL 16.05.2007 15:38

I'm not that harsh :) But i'll start being really strict on that from now.

And i guess if m4rk doens't know about anything like that i guess there isn't anything like that in public yet. I'll try getting something together.

Osito2Dancer 16.05.2007 17:12

the thing is that you cant control it by commands, but rather by GM actions. If you find someone healing from peace zones, warn them and then //send_gmroom them to prison :3. They will stop doing it :3.

Atte

Oso

GMan 16.05.2007 18:32

you can block it

just make the spawn zone also have a skill that

effect = {{p_block_buff};{p_block_spell};{p_block_skill_phy sical}}

FidoW 16.05.2007 18:36

Quote:

Originally Posted by GMan (Post 86151)
you can block it

just make the spawn zone also have a skill that

effect = {{p_block_buff};{p_block_spell};{p_block_skill_phy sical}}

Yes, i have that made but im not really using it on my server since the main problem is summoners.. and that way cant stop summons...

humordwarf 16.05.2007 20:17

eventhandler ATTACKED for sitizens, add there "cast bad magic like paralyze or silence", or teleport summon and master of summon far away

alysia 17.05.2007 00:20

just do a small buff after they click smth on the teleporter so the player can be protected for 10-15sec ;)

LethaL 17.05.2007 10:01

Well it looks like i'll remove em totally since you can pretty easily to exploit it and we can't have a GM at every spawn point 24/7.

smeli 17.05.2007 11:54

there is solution on C4 retail
cause it has function "InPeaceZone"

summon can get master, if master is in peace zone, summon can just not react to "attack" command;
and wheh attacking, frequently check if master in peace zone, if so
RemoveAllAttackDesire
Add desire to follow :)

I am think how to do it in C1, cause I am C1 developer, not C4

FidoW 17.05.2007 12:47

Quote:

Originally Posted by smeli (Post 86191)
there is solution on C4 retail
cause it has function "InPeaceZone"

summon can get master, if master is in peace zone, summon can just not react to "attack" command;
and wheh attacking, frequently check if master in peace zone, if so
RemoveAllAttackDesire
Add desire to follow :)

I am think how to do it in C1, cause I am C1 developer, not C4

Umm, interesting, i will take a look to that

LethaL 17.05.2007 18:15

Sounds very interesting, If anyone have peace zones which will unable summoners from attacking in there and will unable healers from healing in the peace zone i'll be very glad if they could share it to me, Because i can really use one of those.

FidoW 13.06.2007 10:20

Quote:

Originally Posted by LethaL (Post 86131)
Hi we've just implemented Peace Areas in spawn point on our servers then people started to heal from the peace zones and summoners attacking with their pets in them so i wounder if there's any solution to that? If there isn't i'd rather remove them totally.

Thanks in advance.

Solution to summoners attacking from peace zone (not only GK Respawn, all peace zones)

With this fix summoners are unable to use summon inside peace zone, not matter what action you send to summon, only when you go out of the peace zone will start to react.

Compile it yourself... i spent like 1 hour to compile it, since no one is going to share a compiler, im not going to compile nothing for other people.
You dont know how to do ? Learn as I did...
Code:

class summon_fix_peace : default_npc {

handler:

  EventHandler CREATED() {
    myself->AddTimerEx(901,100);
  }

  EventHandler TIMER_FIRED_EX(timer_id) {
    if (myself.master.in_peacezone == 1) {
      if (timer_id == 901) {
        myself->AddPetDefaultDesire_Follow(20000xx.xx0000);
        myself->AddTimerEx(902,3000);
      }
      if (timer_id == 902) myself->AddTimerEx(902,1000);
      }
    }
    else if (timer_id == 901) myself->AddTimerEx(901,1000);
    else if (timer_id == 902) {
      RemoveAllDesire();
      myself->AddTimerEx(901,1000);
    }
  }
 
}

Use this class between summons class and default_npc

Handlers CREATED and TIMER_FIRED_EX that exits already in others classes will need to add super; if you wish this work with them too.

If you want the compiled code, send a PM, please, leachers and people with 1 post dont try it, i will not answer.


All times are GMT. The time now is 15:26.