Ariel Posted June 12, 2012 Author Share Posted June 12, 2012 This will simply make a random between 10% less and 10% high of the value you put in the editor.**Server- Side**find:```Sub PlayerAttackNpc```in the sub search for:```npcdrops = Npc(npcNum).DropItemValue(n)```just under add:```If Item(n).Type = ITEM_TYPE_CURRENCY Then npcdrops = RAND(npcdrops - (npcdrops / 100 * 10), npcdrops + (npcdrops / 100 * 10)) End If```You can edit the % on changing the "10"Small but useful ;) Link to comment Share on other sites More sharing options...
tslusny Posted June 12, 2012 Share Posted June 12, 2012 Nice tut :Dbut dont use```If Item(n).Type = 7 Then```Use this```If Item(n).Type = ITEM_TYPE_CURRENCY Then``` Link to comment Share on other sites More sharing options...
JohnPony Posted June 12, 2012 Share Posted June 12, 2012 This would be useful if one wanted to add a party check, and if the player is in a party split the currency up between the players. Link to comment Share on other sites More sharing options...
tslusny Posted June 12, 2012 Share Posted June 12, 2012 Nice idea pony :D Link to comment Share on other sites More sharing options...
Ariel Posted June 12, 2012 Author Share Posted June 12, 2012 That a good idea but its not in this sub i cant find the sub that add the items :\ help? Link to comment Share on other sites More sharing options...
tslusny Posted June 13, 2012 Share Posted June 13, 2012 @Ariel:> That a good idea but its not in this sub i cant find the sub that add the items :\ help?You can find it in this sub```Sub PlayerMapGetItem``` Link to comment Share on other sites More sharing options...
Ariel Posted June 13, 2012 Author Share Posted June 13, 2012 Thank you :) Link to comment Share on other sites More sharing options...
chamster Posted June 26, 2012 Share Posted June 26, 2012 Is there a pre-requirement?!? I can't seem to find: >! npcdrops = Npc(npcNum).DropItemValue(n) ( I'm using Ctrl+F) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted June 26, 2012 Share Posted June 26, 2012 @chamster:> Is there a pre-requirement?!? I can't seem to find: > >! npcdrops = Npc(npcNum).DropItemValue(n) ( I'm using Ctrl+F)It looks like [this topic (link)](http://www.touchofdeathforums.com/smf/index.php/topic,75169.0.html) is a prerequisite. Link to comment Share on other sites More sharing options...
chamster Posted July 1, 2012 Share Posted July 1, 2012 @Soul:> It looks like [this topic (link)](http://www.touchofdeathforums.com/smf/index.php/topic,75169.0.html) is a prerequisite.Doesn't seem to work. still can't find "npcdrops"…. When I try to compile it Errors: Variable not define Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now