- Joined
- Mar 30, 2007
- Messages
- 745
- Reaction score
- 34
Introduction
As many might know, mixing a g62 Bow or Stick will on many servers
result in a g45 imperial instead of a g62 imperial.
There are different ways to solve this and this is how we did at Project HOAX.
Prerestiques
First of all, you need to give all g45 weapons new indexes.
(yes, we recomended you also do it for swords to avoid confusion).
This is done in the InitItem.txt , and also you need to update the
inititem.dat and the message-e.dat in the config.pk to ensure
the names are matching.
Remember to write the numbers down!
After this you must also change the ItemGroups (drops)
to the new indexes.
The Trick
After this is done, change the imperial g62 weapons to the former
g45 weapons. And ofcource ensure the names are corrected too.
SQL - If your server allready is running
In case of you allready have a server (like us) , you have to
replace the indexes in the database.
Example:
Remember your server should NOT be running while this is being ran,
else you will get some serious bugs ;-)
Thanks to Yakuzing for the idea, and for making all the hard work
writing the new groups and items.
Notice that the above numbers are examples, and should not be taken serious. Check your with your InitItem.txt to find the correct IDs
As many might know, mixing a g62 Bow or Stick will on many servers
result in a g45 imperial instead of a g62 imperial.
There are different ways to solve this and this is how we did at Project HOAX.
Prerestiques
First of all, you need to give all g45 weapons new indexes.
(yes, we recomended you also do it for swords to avoid confusion).
This is done in the InitItem.txt , and also you need to update the
inititem.dat and the message-e.dat in the config.pk to ensure
the names are matching.
Remember to write the numbers down!
After this you must also change the ItemGroups (drops)
to the new indexes.
The Trick
After this is done, change the imperial g62 weapons to the former
g45 weapons. And ofcource ensure the names are corrected too.
SQL - If your server allready is running
In case of you allready have a server (like us) , you have to
replace the indexes in the database.
Example:
- 796 - G62 Imperial Bow of Darkness
- 109 - G45 Baek Dae Steel Bow (old)
- 8001 - G45 Baek Dae Steel Bow (new)
Code:
-- Change Steel Bow to new index
UPDATE [Item] SET [Index] = 8001 WHERE [Index] = 109
-- Change Imp. g62 to new index
UPDATE [Item] SET [Index] = 109 WHERE [Index] = 796
Remember your server should NOT be running while this is being ran,
else you will get some serious bugs ;-)
Thanks to Yakuzing for the idea, and for making all the hard work
writing the new groups and items.
Notice that the above numbers are examples, and should not be taken serious. Check your with your InitItem.txt to find the correct IDs