PDA

View Full Version : Redesigned Crafting



RandQm
August 13th, 2011, 18:06
While i am editing my first source I came stuck with some boredom
I mean why does every server have uncut sapphire, emerald lvl 40, ruby lvl60 and dragonstone
there are other uncuts to :o
I decided to recode crafting a bit. So its a bit more unique

I used random items and random amulets for know since im in the beta phase of my server still.
I DID code the amulets and uncut prizes, xp, and stuff already.

I just started coding a few days ago, and spent a lot of time on it recently; don't be to hard this is the first thing I made on my own :D


Picture:

Only the registered members can see the link.


Please tell me what ya think, it means a lot to a beginning coder (:




showInterface(2311);
}
if ((itemUsed == 1617 || otherItem == 1617) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(2450, 1617, 1731, 66); //diamond
}
if ((itemUsed == 1619 || otherItem == 1619) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(1760, 1619, 1725, 57); //ruby
}
if ((itemUsed == 1621 || otherItem == 1621) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(855, 1621, 1729, 39); //emerald
}
if ((itemUsed == 1623 || otherItem == 1623) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(185, 1623, 1727, 0); //saphire
}
if ((itemUsed == 1631 || otherItem == 1631) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(5100, 1631, 1712, 83); //dragonstone
}
if ((itemUsed == 6571 || otherItem == 6571) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(8400, 6571, 6585, 94); //onyx
}
if ((itemUsed == 1629 || otherItem == 1629) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(3330, 1629, 1478, 75); //red topaz
}
if ((itemUsed == 3109 || otherItem == 3109) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(65000, 3109, 4081, 99); //Salve Ball
}
if ((itemUsed == 1627 || otherItem == 1627) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(1240, 1627, 4250, 48); //Jade
}
if ((itemUsed == 1625 || otherItem == 1625) && (itemUsed == 1755 || otherItem == 1755)) {
crafting(410, 1625, 6040, 21); //opal
}

Dash'
August 13th, 2011, 18:07
um.. cool?

RandQm
August 13th, 2011, 18:09
Would people like this new system or prefere the old one

z0mg beast
August 13th, 2011, 18:12
What did you do exactly...

Rog3r
August 13th, 2011, 18:16
It's pretty good for a beginner but you should implement interfaces too.

Edit; this is like 10% crafting.. You should work on it some more.

ItalianMan
August 13th, 2011, 18:42
Wow man nice. im a beginner coder.
im adding dung to my server ATM

RandQm
August 13th, 2011, 19:35
ok, thanks for the feedback

:D