Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2018, 06:58 PM
caravellex
Sarnak
 
Join Date: Sep 2010
Posts: 62
Default Where to find PvP source code?

Hello, I was looking if there was publicly available server packs for enabling PvP on a server. As of now, the only thing I found was the old vztz source code dump in 2009, of anyone had other resources I'd appreciate it!
Reply With Quote
  #2  
Old 02-12-2018, 01:27 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 461
Default

There hasn't been PVP source codes since VZTZ I believe? There's ways to enable PvP via rules and variables with latest settings.
__________________

~Shin Noir
Rebuild EQ.com
Reply With Quote
  #3  
Old 02-13-2018, 02:05 PM
caravellex
Sarnak
 
Join Date: Sep 2010
Posts: 62
Default

I've tried every ruleset listed in WorldPVPsettings with a full reboot each time and freshly made characters. the only one that does something is the tallon/vallon, which changes the color of the characters name, they can not attack each other though
Reply With Quote
  #4  
Old 02-13-2018, 02:46 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,265
Default

eqemu base does not support pvp you would have to implement the 'pvp' flag solution on your own (short of priest of discord flipping everyone), look into Mob::IsAttackAllowed


if // if both are pvp they can fight
(
c1->GetPVP() &&
c2->GetPVP()
)
return true;

Use either perl or lua to $client->SetPVP(1); on entering the zone.
__________________
www.eqpvp.com
EQEMu GuildWars Creator
Former EQEMu Developer
Member of the "I hate devn00b" club.
Reply With Quote
  #5  
Old 02-13-2018, 03:26 PM
caravellex
Sarnak
 
Join Date: Sep 2010
Posts: 62
Default

Where am I supposed to look to edit the function of isattackallowed. In the PEQ server pack, I've checked almost every .cpp file in zone, they reference Mob::Isattackallowed, but I cant find the definition for it
Reply With Quote
  #6  
Old 02-14-2018, 08:57 AM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,265
Default

I just pointed out where in the code would allow a client to attack another client, either they both need the PVP flag enabled or you need to be dueling each other. In the case of the PVP flag, as I said you need to make a perl / lua file, like the templates/player.pl and in the sub for EVENT_ENTERZONE you can just $client->SetPVP(1); to force their pvp flag on.

Each zone that has player.pl will have to be updated with this change so each zone someone starts in happens to flip the pvp flag.
__________________
www.eqpvp.com
EQEMu GuildWars Creator
Former EQEMu Developer
Member of the "I hate devn00b" club.
Reply With Quote
  #7  
Old 02-14-2018, 10:30 AM
caravellex
Sarnak
 
Join Date: Sep 2010
Posts: 62
Default

AHH I see!
do you think it's possible within that player.pl file to designate who you can an cannot attack? or is that a source code thing?
Reply With Quote
  #8  
Old 02-14-2018, 08:03 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,265
Default

Quote:
Originally Posted by caravellex View Post
AHH I see!
do you think it's possible within that player.pl file to designate who you can an cannot attack? or is that a source code thing?
That would need to be source code. Level restrictions and things of that nature need to be defined in the code also, there are none. This would all be within the Mob::IsAttackAllowed I mentioned in aggro.cpp
__________________
www.eqpvp.com
EQEMu GuildWars Creator
Former EQEMu Developer
Member of the "I hate devn00b" club.
Reply With Quote
Reply

Thread Tools
Display Modes

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 -4. The time now is 04:02 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3