Supremacy MMORPG Station
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Supremacy MMORPG Station

MMORPG Station!
 
HomeHome  PortalPortal  Latest imagesLatest images  RegisterRegister  Log inLog in  
Latest topics
» диета с лимонами
World PvP system EmptyWed Aug 03, 2011 8:56 pm by Guest

» heterogeneous
World PvP system EmptyWed Aug 03, 2011 3:45 pm by Guest

» fish oil skin benefits
World PvP system EmptyWed Aug 03, 2011 2:44 am by Guest

» Effect Of Mitomycin C On Anterior Urethral Stricture Recurrence After Internal Urethrotomy
World PvP system EmptyTue Aug 02, 2011 11:19 pm by Guest

» Almost as tatty as download
World PvP system EmptyTue Aug 02, 2011 2:56 pm by Guest

» free warrock hack 2011
World PvP system EmptyTue Aug 02, 2011 12:21 pm by Guest

» free removal scan spyware tramadol
World PvP system EmptyTue Aug 02, 2011 2:32 am by Guest

» гинекология желтое тело
World PvP system EmptyMon Aug 01, 2011 4:37 pm by Guest

» Netbook Brands
World PvP system EmptyMon Aug 01, 2011 1:55 am by Guest

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

 

 World PvP system

Go down 
3 posters
AuthorMessage
Pyrokorian
Admin
Admin
Pyrokorian


Number of posts : 23
Age : 36
Location : Cali
Job/Hobbies : Sailor.
Main Class : Social Studies?
Registration date : 2008-09-07

World PvP system Empty
PostSubject: World PvP system   World PvP system EmptyWed Sep 10, 2008 1:34 am

This is a world PvP script, that whenever you kill a player, you get money and or tokens. Anyway, I don't take any credit from it. here it is:

Code:
//Made by ??
//Modified by WigSplitta whole code
//Re-Modified and Rewritten by HalestormXV (Added More Features and events)
//Random Dice Concept to Hopla for Helping me


#include "StdAfx.h"
#include "Setup.h"

#define GOLD_AMOUNT 1000000  //it is in copper
               
#define PVP_TOKEN 19712 //Put Your Token ID Here   

void onPvpKill(Player* plr, Player* victim)
{
  if(plr->getLevel() >= 80 && victim->getLevel() >= 80 && plr->GetTeam() != victim->GetTeam())
  {
     char message[200];
     sprintf(message, "|cff00ff00[World PvP]|r |cffff0000%s has killed %s...The hunt begins!|r", plr->GetName(), victim->GetName());
     sWorld.SendWorldWideScreenText(message);
     sLog.outColor(TRED,"\n[WPVP]: WPVP Activated - the killer was %s...The victim was %s.", plr->GetName(), victim->GetName());
     sLog.outColor(TNORMAL,"\n");
     int32 gold_check_p = plr->GetUInt32Value( PLAYER_FIELD_COINAGE );
     int32 gold_check_v = victim->GetUInt32Value( PLAYER_FIELD_COINAGE );
     int32 new_gold_p = gold_check_p + GOLD_AMOUNT;
     int32 new_gold_v;
     if(gold_check_v < GOLD_AMOUNT)
     {
       new_gold_v = 0;
     }
     else
     {
       new_gold_v = gold_check_v - GOLD_AMOUNT;
     }
     plr->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_p );
     plr->BroadcastMessage("You have gained 100 gold for this kill and the victim's soul for your own use.");
     plr->CastSpell(plr, 27239, true);
     plr->PlaySoundToSet(11466);
     victim->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_v );
     victim->BroadcastMessage("You have lost 100 gold and your soul! Learn to fight!!");


    int Chance = 20;
    int Generator = RandomUInt(100);

    if(Generator <= Chance)
     {
       plr->GetItemInterface()->SafeAddItem(PVP_TOKEN, INVENTORY_SLOT_NOT_SET, -1);
       Item * it = objmgr.CreateItem(PVP_TOKEN, plr);
       plr->GetItemInterface()->AddItemToFreeSlot(it);
       sLog.outColor(TGREEN,"[WPVP]: A Token was added for this kill to %s", plr->GetName());
       sLog.outColor(TNORMAL,"\n");
     }
     else
     {
       sLog.outColor(TYELLOW,"[WPVP]: A Token was not added to %s", plr->GetName());
       sLog.outColor(TNORMAL,"\n");
     }

  }
}
void SetupPvP(ScriptMgr * mgr)
{
  mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)onPvpKill);
}

Original Link: http://wow-v.com/forums/index.php?topic=4768.0
Back to top Go down
http://projectchaos.realmsn.com/
Pyrokorian
Admin
Admin
Pyrokorian


Number of posts : 23
Age : 36
Location : Cali
Job/Hobbies : Sailor.
Main Class : Social Studies?
Registration date : 2008-09-07

World PvP system Empty
PostSubject: Re: World PvP system   World PvP system EmptyWed Sep 10, 2008 1:34 am

If i understand correctly, this would be useful.
Back to top Go down
http://projectchaos.realmsn.com/
Azirion
Admin
Admin
Azirion


Number of posts : 13
Registration date : 2008-09-01

World PvP system Empty
PostSubject: Re: World PvP system   World PvP system EmptyWed Sep 10, 2008 8:50 am

Thing is, this looks like a patch script not SQL, you should try to give this to dave for us so he can attach it to any repack that he makes for us. I doubt we can do anything with it really.
Back to top Go down
https://supremacywotlk.forumotion.net
Dave Chaos
Senior Member
Senior Member
Dave Chaos


Number of posts : 4
Age : 41
Location : UK, Manchester
Job/Hobbies : Security Officer, Webmaster, GM+Developer for WoTLK
Registration date : 2008-09-09

World PvP system Empty
PostSubject: Re: World PvP system   World PvP system EmptyWed Sep 10, 2008 10:15 am

Year thats a patch script, i can add it to a core some time if you like, but lets w8 for a new core update first, the auras are being worked on at the moment
Back to top Go down
http://projectchaos.realmsn.com
Azirion
Admin
Admin
Azirion


Number of posts : 13
Registration date : 2008-09-01

World PvP system Empty
PostSubject: Re: World PvP system   World PvP system EmptyWed Sep 10, 2008 3:55 pm

Also, does this patch cut out honor >.>
Back to top Go down
https://supremacywotlk.forumotion.net
Sponsored content





World PvP system Empty
PostSubject: Re: World PvP system   World PvP system Empty

Back to top Go down
 
World PvP system
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Supremacy MMORPG Station :: News and Server Status-
Jump to: