Dynamis Currency
Dynamis Currency
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
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
Something like that.
Code: Select all
@addcurrency "ID of which currency you want" "amount"
Re: Dynamis Currency
dynamis money is an item, not a currencyDesufire wrote:If it's your server, you can just use @addcurrency.
Re: Dynamis Currency
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
DerpkjLotus wrote:dynamis money is an item, not a currencyDesufire wrote:If it's your server, you can just use @addcurrency.
Re: Dynamis Currency
Desufire wrote:DerpkjLotus wrote:dynamis money is an item, not a currencyDesufire wrote:If it's your server, you can just use @addcurrency.
---------------------------------------------------------------------------------------------------
-- 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
You'd useI 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.
Code: Select all
killer:addItem(itemID, quantity);
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.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
Re: Dynamis Currency
Thank you very much! This is what i was trying to ask for.
-
- Posts: 56
- Joined: Sun Mar 23, 2014 2:58 pm
Re: Dynamis Currency
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;