RP/BP lootgen

Share files with other Dawn of Light users

Moderator: Support Team

RP/BP lootgen

Postby deathwish » Wed Mar 14, 2012 1:17 am

Advanced LootGenerator for Realm and Bonuty Points.
Can use a simple in game command to set a Mobs name, Mobs Guild name or a region to give,
Realm Points, Bounty Points or both.

Warning for this to work, you will need to change AllowAdd to true in LootGenerator,
This can be found in, DOLDatabase/Tables folder, line 62, remember to rebuild your core after.

I will work on fixing the need for the core update and also add a remove command too.

Please note, mobs will only give rps/bps after you reboot the server, to allow the lootgen to load.

///////// UPDATE//////////////

Added remove commands so you can remove the lootgens in game - will need to reboot for effects to change place.
Cleaned the script up and made it easier to find the amounts the mob gives.
Attachments
advance lootgen.cs
(11.39 KiB) Downloaded 390 times
Last edited by deathwish on Wed Mar 14, 2012 1:52 pm, edited 1 time in total.
- Terry - terryammon
User avatar
deathwish
Database Team
 
Posts: 483
Joined: Sun Jul 05, 2009 10:15 pm
Location: England / Essex

Re: RP/BP lootgen

Postby Graveen » Wed Mar 14, 2012 5:36 am

Wow nice ! TY DW ! :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: RP/BP lootgen

Postby Tolakram » Wed Mar 14, 2012 7:26 am

I modified the core and committed. No need for AllowAdd = false ... just an old leftover we never changed.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: RP/BP lootgen

Postby deathwish » Wed Mar 14, 2012 12:05 pm

Thank you Tolakram, with that change, it be more safe, for the public to use, also meaning i can finish of the script :)
- Terry - terryammon
User avatar
deathwish
Database Team
 
Posts: 483
Joined: Sun Jul 05, 2009 10:15 pm
Location: England / Essex

Re: RP/BP lootgen

Postby stephenxpimentel » Wed Mar 14, 2012 9:21 pm

wouldnt it be better to add an RP/BP value to the mob DB? not sure but i think a ton of generators will cause performance issues?

Each kill = searched by all generators to see if valid, so when theres 100 of them its doing 100x the work yes?

Is a very nice script, don't get me wrong deathwish, very good imo, just wondering if there might be a better way, i purpose RPValue and BPValue added to Mob DB, with a /mob rp, and /mob bp command added to support it, and GameNPC.RealmpointsValue can be altered to reflect the DB value. This way the RPs will be auto-split between groupies too.
Lets have some fun.
stephenxpimentel
Contributor
 
Posts: 1300
Joined: Wed Sep 19, 2007 5:09 pm

Re: RP/BP lootgen

Postby deathwish » Wed Mar 14, 2012 9:39 pm

lol you like to keep me on my toes :D i see what i can do
- Terry - terryammon
User avatar
deathwish
Database Team
 
Posts: 483
Joined: Sun Jul 05, 2009 10:15 pm
Location: England / Essex

Re: RP/BP lootgen

Postby Argo » Mon Mar 19, 2012 8:46 am

wouldnt it be better to add an RP/BP value to the mob DB? not sure but i think a ton of generators will cause performance issues?

Each kill = searched by all generators to see if valid, so when theres 100 of them its doing 100x the work yes?

Is a very nice script, don't get me wrong deathwish, very good imo, just wondering if there might be a better way, i purpose RPValue and BPValue added to Mob DB, with a /mob rp, and /mob bp command added to support it, and GameNPC.RealmpointsValue can be altered to reflect the DB value. This way the RPs will be auto-split between groupies too.
On one side i second that, for instance take mobs in the frontiers to give a sum of rps. Oh sweet possibilities :D on the other hand i wouldnt want mobs in the classic regions or dungeons to give rp/bps. so if you ad a column for mobs giving rps/bps, you must also add a column for the region(s) to be allowed to give rp/Bp.

just my 2 cent there :mrgreen:

Argo
Möge Gott sein zwischen Dir und dem Leid, an allen dunklen und verlassenen Orten, die Du erreichen wirst.
Argo
Server Team
 
Posts: 1760
Joined: Thu Sep 18, 2008 6:21 pm
Location: Berlin, Germany

Re: RP/BP lootgen

Postby baradien » Mon Mar 19, 2012 9:35 am

wouldnt it be better to add an RP/BP value to the mob DB? not sure but i think a ton of generators will cause performance issues?

Each kill = searched by all generators to see if valid, so when theres 100 of them its doing 100x the work yes?

Is a very nice script, don't get me wrong deathwish, very good imo, just wondering if there might be a better way, i purpose RPValue and BPValue added to Mob DB, with a /mob rp, and /mob bp command added to support it, and GameNPC.RealmpointsValue can be altered to reflect the DB value. This way the RPs will be auto-split between groupies too.
On one side i second that, for instance take mobs in the frontiers to give a sum of rps. Oh sweet possibilities :D on the other hand i wouldnt want mobs in the classic regions or dungeons to give rp/bps. so if you ad a column for mobs giving rps/bps, you must also add a column for the region(s) to be allowed to give rp/Bp.

just my 2 cent there :mrgreen:


Argo
agree with argo

since they will be easy get rps in classic zones/SI/Toa.
This will be easier in the future for others players who runs a server and so.
In other word user friendly
baradien
Server Team
 
Posts: 950
Joined: Wed Jan 23, 2008 3:17 pm
Location: Belguim

Re: RP/BP lootgen

Postby stephenxpimentel » Mon Mar 19, 2012 6:59 pm

just want to point out that it would be by the actual mob, not by name etc, so it would be only the mobs u assign, thus never matter what region their in if u do it in the Mob table. Think of each mob as 1 DB Column, u can make a full camp of mobs with the same name, guild, model, armor, weapons, and only make 1 give RP/BP when its killed.
Lets have some fun.
stephenxpimentel
Contributor
 
Posts: 1300
Joined: Wed Sep 19, 2007 5:09 pm

Re: RP/BP lootgen

Postby deathwish » Mon Mar 19, 2012 8:09 pm

I have also been thinking of merging a mobs brain with a loot gen, so the mob will display the item it will drop, eg, if the mob loads up, and the brain sets the mob to have golden spear, when the mob is killed, it will drop that item, then when it re-pops, it might load with a different random item, like winged helm and the mob will be wearing winged helm and so on...
- Terry - terryammon
User avatar
deathwish
Database Team
 
Posts: 483
Joined: Sun Jul 05, 2009 10:15 pm
Location: England / Essex

Re: RP/BP lootgen

Postby Argo » Tue Mar 20, 2012 10:18 am

just want to point out that it would be by the actual mob, not by name etc, so it would be only the mobs u assign, thus never matter what region their in if u do it in the Mob table. Think of each mob as 1 DB Column, u can make a full camp of mobs with the same name, guild, model, armor, weapons, and only make 1 give RP/BP when its killed.
I don't understand half of what Stephen is actually talking about but i know that whatever he contributes is great. many a good thing came from him in the past. So go on Hellfire, keep it burning :mrgreen:
Möge Gott sein zwischen Dir und dem Leid, an allen dunklen und verlassenen Orten, die Du erreichen wirst.
Argo
Server Team
 
Posts: 1760
Joined: Thu Sep 18, 2008 6:21 pm
Location: Berlin, Germany

Re: RP/BP lootgen

Postby geshi » Tue Mar 20, 2012 12:09 pm

just want to point out that it would be by the actual mob, not by name etc, so it would be only the mobs u assign, thus never matter what region their in if u do it in the Mob table. Think of each mob as 1 DB Column, u can make a full camp of mobs with the same name, guild, model, armor, weapons, and only make 1 give RP/BP when its killed.
That'd just be quite annoying to maintain in my opinion.. unless it told GM's++ how much RP/BP the mob is worth when the mob is selected etc..
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm

Re: RP/BP lootgen

Postby stephenxpimentel » Tue Mar 20, 2012 1:40 pm

that can be done of course, but i think no matter which way u spin it RPValue / BPValue column in the DB is more efficient than overloadeding the server with loot generators
Lets have some fun.
stephenxpimentel
Contributor
 
Posts: 1300
Joined: Wed Sep 19, 2007 5:09 pm

Re: RP/BP lootgen

Postby deathwish » Wed Mar 21, 2012 12:17 am

I fully agree with stephen, if it was going to added to svn, then it would well be worth having it in the DB, but i made it this way, so anyone can just add to scripts folder and off they go, no need to edit the core codes
- Terry - terryammon
User avatar
deathwish
Database Team
 
Posts: 483
Joined: Sun Jul 05, 2009 10:15 pm
Location: England / Essex

Re: RP/BP lootgen

Postby mattress » Wed Mar 21, 2012 2:22 am

Another approach might be to make an item like a token that can be /used or turned in for RP or BP, then add it to a drop list with a very low drop percentage, kinda similar to the Storm Level Escape coin
Matt450/Variations of "Matt"
User avatar
mattress
Server Team
 
Posts: 277
Joined: Mon Jul 05, 2010 3:30 am
Location: Oceanside, California


Return to “%s” User Files

Who is online

Users browsing this forum: Bing [Bot] and 1 guest