Page 1 of 1

RP/BP lootgen

PostPosted: Wed Mar 14, 2012 1:17 am
by deathwish
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.

Re: RP/BP lootgen

PostPosted: Wed Mar 14, 2012 5:36 am
by Graveen
Wow nice ! TY DW ! :)

Re: RP/BP lootgen

PostPosted: Wed Mar 14, 2012 7:26 am
by Tolakram
I modified the core and committed. No need for AllowAdd = false ... just an old leftover we never changed.

Re: RP/BP lootgen

PostPosted: Wed Mar 14, 2012 12:05 pm
by deathwish
Thank you Tolakram, with that change, it be more safe, for the public to use, also meaning i can finish of the script :)

Re: RP/BP lootgen

PostPosted: Wed Mar 14, 2012 9:21 pm
by stephenxpimentel
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.

Re: RP/BP lootgen

PostPosted: Wed Mar 14, 2012 9:39 pm
by deathwish
lol you like to keep me on my toes :D i see what i can do

Re: RP/BP lootgen

PostPosted: Mon Mar 19, 2012 8:46 am
by Argo
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

Re: RP/BP lootgen

PostPosted: Mon Mar 19, 2012 9:35 am
by baradien
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

Re: RP/BP lootgen

PostPosted: Mon Mar 19, 2012 6:59 pm
by stephenxpimentel
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.

Re: RP/BP lootgen

PostPosted: Mon Mar 19, 2012 8:09 pm
by deathwish
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...

Re: RP/BP lootgen

PostPosted: Tue Mar 20, 2012 10:18 am
by Argo
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:

Re: RP/BP lootgen

PostPosted: Tue Mar 20, 2012 12:09 pm
by geshi
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..

Re: RP/BP lootgen

PostPosted: Tue Mar 20, 2012 1:40 pm
by stephenxpimentel
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

Re: RP/BP lootgen

PostPosted: Wed Mar 21, 2012 12:17 am
by deathwish
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

Re: RP/BP lootgen

PostPosted: Wed Mar 21, 2012 2:22 am
by mattress
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