marak Posted March 16, 2013 Author Share Posted March 16, 2013 you create the item then he has common value, so that random, like you he will come between 30 and 40 can come values ​​30,31,32,33, 34,35,36,37,38,39 and 40 ^ ^ Link to comment Share on other sites More sharing options...
Zexion Posted March 16, 2013 Share Posted March 16, 2013 Can you be a bit more…concise? Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 16, 2013 Share Posted March 16, 2013 He want an item which gives you another random item with setable numbers…From number 30 to Number 40 will it get an random number which is the Item-ID and youll receive that..If im wrong tell it us^^ Link to comment Share on other sites More sharing options...
marak Posted March 16, 2013 Author Share Posted March 16, 2013 yes Link to comment Share on other sites More sharing options...
kris_hole Posted March 16, 2013 Share Posted March 16, 2013 if that yes is to being wrong, then try again.BUT, if it's to being right then:Assuming the version of eclipse you're using is more recent than EO when they removes sadscript, if you know how to code in vb6 (i'm assuming you probably don't) then this is a doddle.Otherwise find a coder to do this for you.What you will need to do (if you want to attempt to do it yourself):1\. Create a new Item Type within the source code.2\. Edit the Item Structure so that there is an Array to store the data of which items to give you, how many, durability etc.3\. Edit the Item Editor so that there is a graphical method for the admin(you) to change these variables for the new item type, for instance a scroll bar which goes through the array and then options to add items or remove them from the list.4\. Edit the Clients and Server's SaveItem functions to save the new data to the item files.5\. Edit the Item Usage function for the new type, so that when the Item is used, the item is taken off the player, and using a simple function to determine the maximum valid items within the array, use the Rand(1, Array.Max) function to determine a random item from the list to give to the player.6\. Compile and Test.PS. If you don't know how to do this go and make a topic asking for help from someone who knows how to. If you want me to do it, i'll do it for a very very very small price. And it'll be flawless.If you want to learn how to code with VB6, perhaps this could be a good starting point for you. Link to comment Share on other sites More sharing options...
Matt Posted March 17, 2013 Share Posted March 17, 2013 There are tutorials for making resources spawn with a random number set between a minimum and maximum. You could take a look at that to get an idea how to get a random number from using an item. Link to comment Share on other sites More sharing options...
shinobugmaster Posted March 17, 2013 Share Posted March 17, 2013 Hmm```Case Random i = RAND(Item(itemnum).Data1, Item(itemnum).Data2) Call GiveInvItem(Index, i, 0) Call TakeInvItem(Index, itemnum, 0)```Use that piece of code at UseItem and it's yours to figure out the rest.. 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