Jump to content

BattleGround server


Guest Roky

Recommended Posts

I have a question.I played on a realm where you start in Alterac Valley at level 70 and T3 items i think.All the NPC's was deleted and there was added some custom NPC's that sells items for 50 gold.When you kill a player you get 1 Gold and when you get killed it tooks you 50 Silver.Is there any patch to make something like this?Thank you guys in advance.

Link to comment
Share on other sites

To change the NPC's and player start gear is most likely simple database editing. The level 70 at start can be set in the mangos.config file. The give/ take gold on death would need a bit of custom code in the handler for on player death with the pvp flag set on; probably look in world.cpp or player.cpp ithink. As for making a patch for this, there exists none atm, and it would be fairly easy to do the database bit. The money modification on pvp loss/ win would be the only thing you'd need a patch for and it would most likely not be included with mangos since its custom content.

Further reading:

Explanation of the starting gear table: http://wiki.udbforums.org/index.php/Playercreateinfo_item

Setting a NPC to sell stuff: http://wiki.udbforums.org/index.php/Npc_vendor

Table that contains other data for npcs: http://wiki.udbforums.org/index.php/Creature_template#entry

Link to comment
Share on other sites

To change the NPC's and player start gear is most likely simple database editing. The level 70 at start can be set in the mangos.config file. The give/ take gold on death would need a bit of custom code in the handler for on player death with the pvp flag set on; probably look in world.cpp or player.cpp ithink. As for making a patch for this, there exists none atm, and it would be fairly easy to do the database bit. The money modification on pvp loss/ win would be the only thing you'd need a patch for and it would most likely not be included with mangos since its custom content.

Further reading:

Explanation of the starting gear table: http://wiki.udbforums.org/index.php/Playercreateinfo_item

Setting a NPC to sell stuff: http://wiki.udbforums.org/index.php/Npc_vendor

Table that contains other data for npcs: http://wiki.udbforums.org/index.php/Creature_template#entry

Thanks for the help but one thing i did not understand from you.How to make Chars to start at Alterac Valley.The other think i assumed that it will need touching DataBase.

Link to comment
Share on other sites

Either stick a portal at the start locations of each race (GM using .spawn could do this after you make the custom GO in the db. There were tutorials for this...not sure if they got lost in the forum crashes). I can't really figure out how to make the custom tele without portal... there maybe some code in player.cpp that could help, not sure through.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use