- Joined
- Apr 12, 2008
- Messages
- 40
- Reaction score
- 0
Well, now that Titan v.0.2.0 is out, I don't think I'll have time for this anymore.
Made with Visual basic lolz
http://forum.ragezone.com/showthread.php?t=445095 is the dev link
And
So far everything is working as it should be, and Class Item is the class I use to store the information about the shop items. ConvertNameToID.vb is a module that just has a very long select case with
The rest are for the forms and some blank files might be there since I was testing and the credits file was there because I needed to keep track of credits if I had decided to keep continuing this project. I use it to find IDs of names like
which would give me the code 1002004? or I forgot GM Hat code.
To add items to lstItems, you first need to find which items you want to add then find the sub for it. Its like FindMageHat() and stuff. And in that sub if it's not done yet, it'll first have a lstItems.items.clear then it will have a 'Add Mage Hats or something like that to show you and you would do:
I had the getName, getID, getPrice, setName, setID, and setPrice parts of the class there before I set the variables to Public, so they aren't needed, you can use them if you want. The class is still needed because that is where the price, name, and ID will be stored.
You also may see some very indented long pieces of code, those are for finding out if each Item instance is null or not. The ones with the giant tabs are for assigning, I would always want to assign it to the first one available.
Btw, Created with Visual Studio 2008 so I don't know if earlier versions would work with it.
You might want to compile it first, because a feature that checked whether you entered a shop/npc ID apparently wasn't uploaded in the Debug/Release.
Everything else should be self-explanatory...
Made with Visual basic lolz
http://forum.ragezone.com/showthread.php?t=445095 is the dev link
And
To view the content, you need to sign in or register
is the dl link.So far everything is working as it should be, and Class Item is the class I use to store the information about the shop items. ConvertNameToID.vb is a module that just has a very long select case with
Code:
Case "Name"
Code = "Code"
Code:
ConvertNameToID.ConvertNameToID("Wizet Invincible Hat")
To add items to lstItems, you first need to find which items you want to add then find the sub for it. Its like FindMageHat() and stuff. And in that sub if it's not done yet, it'll first have a lstItems.items.clear then it will have a 'Add Mage Hats or something like that to show you and you would do:
Code:
lstShop.Items.AddRange(New Object(){"Name1", "Name2", "Etc"})
I had the getName, getID, getPrice, setName, setID, and setPrice parts of the class there before I set the variables to Public, so they aren't needed, you can use them if you want. The class is still needed because that is where the price, name, and ID will be stored.
You also may see some very indented long pieces of code, those are for finding out if each Item instance is null or not. The ones with the giant tabs are for assigning, I would always want to assign it to the first one available.
Btw, Created with Visual Studio 2008 so I don't know if earlier versions would work with it.
You might want to compile it first, because a feature that checked whether you entered a shop/npc ID apparently wasn't uploaded in the Debug/Release.
Everything else should be self-explanatory...