Page 1 of 2

Dynamis Currency

Posted: Sat Sep 05, 2015 12:43 pm
by King_kupo
Hello, I have a server set up and a few friends that play here, I have played on other private servers and don't remember which one it was but they had a command something like @makeitrain for dynamis currency duping. Would anyone know this script or where I could find it? Any info would be greatly appreciated. Also looking for any kind of custom mods to zones ect. I am not coding literate so writing my own scripts is almost impossible. Again any info is greatly appreciated. Thanks!

Re: Dynamis Currency

Posted: Sat Sep 05, 2015 4:31 pm
by Desufire
If it's your server, you can just use @addcurrency. Change the permission to 0 so all can use or whatever. The command should work like

Code: Select all

@addcurrency "ID of which currency you want" "amount"
Something like that.

Re: Dynamis Currency

Posted: Sat Sep 05, 2015 4:56 pm
by kjLotus
Desufire wrote:If it's your server, you can just use @addcurrency.
dynamis money is an item, not a currency

Re: Dynamis Currency

Posted: Sun Sep 06, 2015 1:51 am
by tabitaru
!

Re: Dynamis Currency

Posted: Sun Sep 06, 2015 3:35 pm
by King_kupo
Thanks for the replies, What i am looking for tho is a specific command that when the mobs die and drop loot in dynamis it AUTOMATICALLY duplicates all currency dropped to the players who are in the group. Like I said before, I play on several servers and I dont remember which one does this but I believe they call it @Makeitrain.

Re: Dynamis Currency

Posted: Sun Sep 06, 2015 4:28 pm
by Desufire
kjLotus wrote:
Desufire wrote:If it's your server, you can just use @addcurrency.
dynamis money is an item, not a currency
Derp

Re: Dynamis Currency

Posted: Sun Sep 06, 2015 4:55 pm
by King_kupo
Desufire wrote:
kjLotus wrote:
Desufire wrote:If it's your server, you can just use @addcurrency.
dynamis money is an item, not a currency
Derp

---------------------------------------------------------------------------------------------------
-- func: @addcurrency <currency type> <amount> <target player>
-- desc: Adds the specified currency to the player
---------------------------------------------------------------------------------------------------
Now I am not a programmer but I do understand command lines. This says "target player" Which means if I had 13 people in the group for dynamis I would have to take time to put each individual thing in thier inventory. This is not what I am wanting, I played on a server that when you killed a mob in dynamis and it dropped loot/currency, It placed it in every players inventory automtically, if someone here knows the server or knows what i am talking about, please assist.

Re: Dynamis Currency

Posted: Mon Sep 07, 2015 1:05 am
by TeoTwawki
I played on a server that when you killed a mob in dynamis and it dropped loot/currency, It placed it in every players inventory automtically, if someone here knows the server or knows what i am talking about, please assist.
You'd use

Code: Select all

killer:addItem(itemID, quantity);
inside the monsters onMobDeath script.

If you also want the massage, you'd need to use killer:messageBasic(blah, blah); to get that to happen (see almost every NPC script where you obtain an item ever, for examples)

Re: Dynamis Currency

Posted: Wed Sep 16, 2015 8:27 pm
by King_kupo
Thank you very much! This is what i was trying to ask for.

Re: Dynamis Currency

Posted: Sat Feb 06, 2016 12:13 am
by kennxonline
I cant get my code to work, it works for dropping items into inventory, but I want it to give currency.

Code: Select all

----------------------------------
-- Area: South Gustaberg
--  NM:  Leaping Lizzy
-----------------------------------

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer,ally)

    -- Set LL's ToD
    SetServerVariable("[POP]Leaping_Lizzy", os.time(t) + 3600); -- 1 hour
    DeterMob(mob:getID(), true);

    -- Set PH back to normal, then set to respawn spawn
    local PH = GetServerVariable("[PH]Leaping_Lizzy");
    SetServerVariable("[PH]Leaping_Lizzy", 0);
    DeterMob(PH, false);
    GetMobByID(PH):setRespawnTime(GetMobRespawnTime(PH));

end;

function onMobDeath(mob,killer,ally)

killer:addCurrency(cruor, 1140);

end;