Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 16.05.2007, 13:21   #1
LethaL
Архивный участник
 
Join Date: Nov 2006
Posts: 86
Default 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.
LethaL is offline  
Old 16.05.2007, 15:33   #2
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

There is, you ban anyone who does that... they'll stop doing it
m4rk is offline  
Old 16.05.2007, 15:38   #3
LethaL
Архивный участник
 
Join Date: Nov 2006
Posts: 86
Default

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.
LethaL is offline  
Old 16.05.2007, 17:12   #4
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

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
Osito2Dancer is offline  
Old 16.05.2007, 18:32   #5
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

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}}
GMan is offline  
Old 16.05.2007, 18:36   #6
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by GMan View Post
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...
FidoW is offline  
Old 16.05.2007, 20:17   #7
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

eventhandler ATTACKED for sitizens, add there "cast bad magic like paralyze or silence", or teleport summon and master of summon far away
humordwarf is offline  
Old 17.05.2007, 00:20   #8
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

just do a small buff after they click smth on the teleporter so the player can be protected for 10-15sec
alysia is offline  
Old 17.05.2007, 10:01   #9
LethaL
Архивный участник
 
Join Date: Nov 2006
Posts: 86
Default

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.
LethaL is offline  
Old 17.05.2007, 11:54   #10
smeli
Архивный участник
 
Join Date: Apr 2006
Posts: 181
Default

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
smeli is offline  
Old 17.05.2007, 12:47   #11
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by smeli View Post
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
FidoW is offline  
Old 17.05.2007, 18:15   #12
LethaL
Архивный участник
 
Join Date: Nov 2006
Posts: 86
Default

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.
LethaL is offline  
Old 13.06.2007, 10:20   #13
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by LethaL View Post
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.
FidoW is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:16.