Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help] Bug weapons along with ammunition

Initiate Mage
Joined
Jan 31, 2014
Messages
35
Reaction score
3
ammunition along with weapons because so ta?
How do I put the line? :/

Jhaimes Ribeiro - [Help] Bug  weapons along with ammunition - RaGEZONE Forums
Jhaimes Ribeiro - [Help] Bug  weapons along with ammunition - RaGEZONE Forums
 
Last edited by a moderator:
Initiate Mage
Joined
Sep 10, 2013
Messages
74
Reaction score
1
Re: What ?? help Bug weapons along with ammunition

How to put the old way ammunition in ammo slot?
Please help me?
Sorry my english
 
Upvote 0
Initiate Mage
Joined
Jun 14, 2013
Messages
8
Reaction score
2
Because it is hard coded to be this way.

WZ\src\EclipseStudio\Sources\UI\UIItemInventory.cpp

Code:
void UIItemInventory::addTabTypes()
{
    Scaleform::GFx::Value var[8];
    var[2].SetNumber(0); 
    var[3].SetNumber(0);
    var[4].SetNumber(0);
    var[5].SetNumber(0);
    var[6].SetNumber(0);
    var[7].SetBoolean(true); // visible in store

    // store & inventory tabs

    var[0].SetNumber(0);
    var[1].SetString("weapon");
    var[2].SetBoolean(true);
    var[3].SetBoolean(true);
    gfxMovie_->Invoke("_root.api.addTabType", var, 4);

    var[0].SetNumber(1);
    var[1].SetString("ammo");
    [COLOR=#FF8C00]var[2].SetBoolean(false);[/COLOR]  <------ CHANGE TO (true)
    var[3].SetBoolean(true);
    gfxMovie_->Invoke("_root.api.addTabType", var, 4);

Code:
    // special category for ammo
    var[0].SetNumber(419);
    var[1].SetString("ammo");
    [COLOR=#FF8C00]//var[2].SetNumber(1); [/COLOR]<--- remove two //'s at front of line
    [COLOR=#FF8C00]var[2].SetNumber(0);[/COLOR] <--- add two //'s at front of line
    var[3].SetNumber(-1);
    gfxMovie_->Invoke("_root.api.addCategory", var, 4);


Rebuild ALL solutions with the Proper Build settings

Credits: DNC
 
Upvote 0
Back
Top