I’m trying to think of an idea where it would be a deterrence to players to kill enemy players of a lower level by 15 levels.
I’m thinking something along the lines of…
public:
DishonorableKill() : PlayerScript(“DishonorableKill”){}
void OnPVPKill(Player * Killer, Player * Killed)
{
if(Killer->GetLEVEL() > Killed->GetLEVEL())
return;
QueryResult result = CharacterDatabase.PQuery("SELECT * FROM level WHERE guid='%u'", Killed->GetLEVEL());
if(!result)
return;
Field * fields = result->Fetch();
switch(fields[2].GetUInt64())
{
Killer->SetMoney(Killer->GetMoney() - 100 * 10000));
break;
}
Not really great at C++ but the concept here is to remove the gold from the killers current gold if they are above the one who was killed. What I’m aiming to do is have it more along the lines of
if(Killer->GetLEVEL() >10 Killed->GetLEVEL())
return;
However I know that won’t work, but essentially if the player is 10 levels higher than the one killed then it would then remove the gold. Helpful Criticism is appreciated. Criticism to flex your epeen is not. Thanks in advance.