Dynamis Currency

King_kupo
Posts: 4
Joined: Sat Sep 05, 2015 12:17 pm

Dynamis Currency

Post by King_kupo » Sat Sep 05, 2015 12:43 pm

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!

Desufire
Posts: 162
Joined: Sun Feb 22, 2015 2:58 am

Re: Dynamis Currency

Post by Desufire » Sat Sep 05, 2015 4:31 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Dynamis Currency

Post by kjLotus » Sat Sep 05, 2015 4:56 pm

Desufire wrote:If it's your server, you can just use @addcurrency.
dynamis money is an item, not a currency

User avatar
tabitaru
Posts: 99
Joined: Sun Apr 12, 2015 4:49 am

Re: Dynamis Currency

Post by tabitaru » Sun Sep 06, 2015 1:51 am

!
Last edited by tabitaru on Sun Oct 18, 2015 7:04 am, edited 1 time in total.

King_kupo
Posts: 4
Joined: Sat Sep 05, 2015 12:17 pm

Re: Dynamis Currency

Post by King_kupo » Sun Sep 06, 2015 3:35 pm

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.

Desufire
Posts: 162
Joined: Sun Feb 22, 2015 2:58 am

Re: Dynamis Currency

Post by Desufire » Sun Sep 06, 2015 4:28 pm

kjLotus wrote:
Desufire wrote:If it's your server, you can just use @addcurrency.
dynamis money is an item, not a currency
Derp

King_kupo
Posts: 4
Joined: Sat Sep 05, 2015 12:17 pm

Re: Dynamis Currency

Post by King_kupo » Sun Sep 06, 2015 4:55 pm

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.

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Dynamis Currency

Post by TeoTwawki » Mon Sep 07, 2015 1:05 am

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)
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

King_kupo
Posts: 4
Joined: Sat Sep 05, 2015 12:17 pm

Re: Dynamis Currency

Post by King_kupo » Wed Sep 16, 2015 8:27 pm

Thank you very much! This is what i was trying to ask for.

kennxonline
Posts: 56
Joined: Sun Mar 23, 2014 2:58 pm

Re: Dynamis Currency

Post by kennxonline » Sat Feb 06, 2016 12:13 am

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;

Post Reply