• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PVP - E Script! HELP!

exique

Natala-ot.com
Joined
Sep 28, 2008
Messages
1,673
Reaction score
25
Location
Sweden
Many people on my server wants pvp-e..
I've made so you get experience but it's PVP world.. (Hope you understand)

I want a script that does this:

Player 1 kills player 2.

Player 1 gains exp.

Player 1 kills player 2 again!
But he gains no exp..

Like this:
You can only kill a person to gain exp once in 3 hours..

Someone can make it?:thumbup:
 
Are you fuc*ing with me?
I need to pay to get a script? -.-

I could give reputation and premium points on my ot :)
 
Go to player.cpp and find:
Code:
Player::getGainedExperience

Under:
Code:
if(!attackerPlayer || attackerPlayer == this || !skillLoss)
	return 0;

Add:
Code:
if (lastKiller == attacker->getName())
   return 0;
       
lastKiller = attacker->getName();

Go to player.h and add in class:
Code:
char lastKiller[128];

Go to iologindata.cpp and find:
Code:
IOLoginData::loadPlayer

and add under:
Code:
player->account = acc.name;

add:
Code:
player->lastKiller = "Nobody";
 
if someone would just use creatureevents and os.times for the 3 hour wait. it wouldnt require source edit. but im too lazy atm
 
Back
Top