Model Switcher

01/22/2015 22:50 Syloxx#31
Quote:
Originally Posted by magicanoo View Post
How is it the same?

Adding every scroll separately :
-18 weapons x 4 different skins = 72 scrolls
-adding 72 "if" statements in the _addtimedjob
-each if statement will contain separate (select weapon id/check if the old item ID is correct/update the new ID).
What if a user used a spear switch scroll on a sword scroll? execution will fail? you'll give him another scroll after teleporting him?
does he have to buy a specific scroll for each item? are you serious?


one scroll per skin degree:
-4 scrolls
-4x "if" statements
-each "if" statements will contain (select weapon id/case statement with all the possible items/update the new ID).
This way it becomes GENERIC and with LESS code.
Nope, that's not required not even on xExorcists method


his method will be something like:

SELECT @NewSkin = CodeName + '_SKIN_' + @DEGREE

so it will look like that

ITEM_CH_SWORD_11_A_RARE > ITEM_CH_SWORD_11_A_RARE_SKIN_08

so there is just a scroll for each degree required... but i still prefer my method :)
01/22/2015 22:53 ​Exo#32
Quote:
Originally Posted by magicanoo View Post
How is it the same?

Adding every scroll separately :
-18 weapons x 4 different skins = 72 scrolls
-adding 72 "if" statements in the _addtimedjob
-each if statement will contain separate (select weapon id/check if the old item ID is correct/update the new ID).
What if a user used a spear switch scroll on a sword scroll? execution will fail? you'll give him another scroll after teleporting him?
does he have to buy a specific scroll for each item? are you serious?


one scroll per skin degree:
-4 scrolls
-4x "if" statements
-each "if" statements will contain (select weapon id/case statement with all the possible items/update the new ID).
This way it becomes GENERIC and with LESS code.
01/22/2015 22:54 magicanoo#33
Old ID -> old codename ->add extenstion to codename ->convert new codename to ID??

Why not just from ID to ID ?
01/22/2015 22:57 Syloxx#34
Quote:
Originally Posted by magicanoo View Post
Old ID -> old codename ->add extenstion to codename ->convert new codename to ID??

Why not just from ID to ID ?
its true, its not the best method this is why i prefer mine

but its way faster then your method
01/22/2015 22:58 ​Exo#35
Quote:
Originally Posted by magicanoo View Post
Old ID -> old codename ->add extenstion to codename ->convert new codename to ID??

Why not just from ID to ID ?
Because, it's impossible to know the ID automatically if there's no pattern.