First, I want to add three notetags to each weapon and armor
for example:
<level: 12><type: sword><rarity: 3>
<level: 4><type: hat><rarity: 0>
…………etc.etc...
There are 400 pieces of equipment in my database, they all have their note tags
now i want to create a function , three input(level,type,rarity), one return value(id)
Since I am a PHP coder, I don't know how to write javascript, so I have made something in my textbook:
Can anyone help me? thx for any replies!
for example:
<level: 12><type: sword><rarity: 3>
<level: 4><type: hat><rarity: 0>
…………etc.etc...
There are 400 pieces of equipment in my database, they all have their note tags
now i want to create a function , three input(level,type,rarity), one return value(id)
Since I am a PHP coder, I don't know how to write javascript, so I have made something in my textbook:
Can anyone help me? thx for any replies!