Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Extra Loot
|
Author |
Message |
Van Glan Bloom 
Journeyman

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0
![]()
|
Extra Loot
Well this script has been functioning well, until the few days it stopped working altogether, his function is that the player receives extra gold after killing mobs, but has not worked properly
Event added in Item :
Code:
....
ON=@EQUIP
src.events=+e_more_money
src.moddex += 5
src.modint += 5
src.modstr += 5
ON=@UNEQUIP
src.events=-e_more_money
src.moddex -= 5
src.modint -= 5
src.modstr -= 5
Event
Code:
[Events e_more_money]
ON=@kill
SRC.VAR.RAND=<EVAL {1 50}> //10% chance or 1/10 chances
IF (<SRC.VAR.RAND>=1) // Random Value is 1
IF (<ARGO.TAG.BONUSCHANCE>=1) // Checks to see if it's the creature that drops the bonus gold
SRC.SYSMESSAGE You have received bonus gold from <ARGO.NAME>.
SRC.newitem i_gold // Creates the new item
SRC.ACT.AMOUNT = (<ARGO.STR> + <ARGO.DEX> + <ARGO.INT>) /// the tougher the mob, the more the gold
SRC.ACT.BOUNCE /// gives it to the player
RETURN 0 /// And the creature dies
endif
endif
|
|
03-22-2015 08:26 AM |
|
|
User(s) browsing this thread: 1 Guest(s)