Fixing Smithing - Need to add it all
Hello faithful ragezoners!
I seem to be having a problem. I am using the Deltascape source as my server base. I have pretty much recoded everything but I am stuck on smithing. For smithing, it simply turns whatever bar you smith into 150GP when you try to use it on an anvil. Can someone post a small tutorial on how to add smithing so the menu appears and you can pick what to smith, etc.
Thanks very much in advance,
Chris
Re: Fixing Smithing - Need to add it all
I know the problem, just hard to explain.
~ Go to client.java
~ Search 2349 ( the code of bronze bar )
~ Look for this code:
PHP Code:
if(UsedOnObjectID == 2783 && ItemID == 2349 && playerHasItem(2347)){
deleteItem(2349, 1);
sM("You smith the bar into some gold.");
addItem(995, 150);
~ See were it says addItem (995, 150);
~ Change the 995 to the item code you want to get when you use the bar on the anvil
~ change the 150 to the amount of the item
------------------------------------
So its basically,
If you use a bronze bar on a anvil and you do have a hammer,
it Delete the bronze bar
and it adds the item you want
------------------------------------
Hope i helped.
Re: Fixing Smithing - Need to add it all
He means, like on runescape you get a pop-up of what you want to smith, plates, legs ect.
Sorry, i can't help you with this, i know Vico-scape source has it working, it's avalible to download i think on runelocus forums. ( Sorry if thats advertising )
Re: Fixing Smithing - Need to add it all
then you'd just code the opening of the interface, and add the buttons.
Its pretty simple.