Register for your free account! | Forgot your password?

You last visited: Today at 01:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Request Update

Discussion on Request Update within the WarRock Guides, Tutorials & Modifications forum part of the WarRock category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2021
Posts: 44
Received Thanks: 7
Arrow Request Update

struct t_weap
{
char unknown[12];
int id;
char lname[32];
char sname1[32];
char sname2[32];
char sname3[32];
char data[5336];
};

struct t_slot
{
BYTE enab; //0
BYTE type; //1
BYTE id; //2
char dum1[33]; //29 //4
char sname[16]; //12 //25
char dum2[19]; //17 //35
DWORD adr_weap; //48
DWORD adr_inv; //5C
};

DWORD dwADR_WEAPONBASE = ADR_WEAPONBASE;
DWORD dwOFS_SLOTBASE = OFS_SLOTBASE;
DWORD dwOFS_PLAYERID = OFS_PLAYERID;

t_weap* pweap[747];
t_slot* pslot[8];

t_slot* WPNslotadr(int pclass, int slot)
{
return (t_slot*)(*outgame + dwOFS_SLOTBASE + (pclass * 0x34) + (slot * 0x8));
}

void WPNput(int pclass, int slot, int weappon)
{
t_slot* pslot;
if (weappon < 0 || pweap[weappon] == 0) return;

pslot = WPNslotadr(pclass, slot);
pslot->adr_weap = (DWORD)pweap[weappon];
_strcpy(pslot->sname, pweap[weappon]->lname);
pslot->id = weappon;
pslot->type = 0x44;
pslot->enab = 1;
}

void find_weapons(void)
{
DWORD* p_weapbase, * baseadr;
t_weap* weap;

for (int i = 0; i < 747; i++)pweap[i] = 0;
p_weapbase = (DWORD*)dwADR_WEAPONBASE;
baseadr = (DWORD*)(*p_weapbase);

for (int b = 0; b < 747; b++)
{
weap = (t_weap*)(*baseadr);
if (weap)pweap[b] = weap;
baseadr++;
}
}

int WPNget(int pclass, int slot)
{
t_slot* pslot;
pslot = WPNslotadr(pclass, slot);
return pslot->id;
}
UR_COD is offline  
Old 12/01/2022, 21:02   #2
 
elite*gold: 0
Join Date: Sep 2017
Posts: 30
Received Thanks: 6
Arrow

ezekiel32 is offline  
Reply


Similar Threads Similar Threads
Music Player [UPDATE 3] NEW UPDATE
05/26/2010 - CO2 Exploits, Hacks & Tools - 85 Replies
(DOWNLOAD IS AT THE BOTTOM) Ever wanted to play music, while playing conquer and dont have to ALT+TAB every time? What is updated?: - Double click in playlist support - Much better interface - Playlist Continue play - Shuffle(BETA) - Bug Fixed: Unchecking Continue play if you close playlist screen. - Bug Fixed: Doubling playlist when re-open - Added: Position Editor (Double klik on the logo)
[UPDATE] Legend IV Plus Update - XX July 2009
06/22/2009 - Silkroad Online - 18 Replies
Legend IV Plus Update - XX July 2009 ~ BACKGROUND STORY ~ http://img.joymax.com/property/silkroad/silkroado nline_3/us/ter_img/leg4.5_img/bgstory_img/bgstory_ 01.jpg http://img.joymax.com/property/silkroad/silkroado nline_3/us/ter_img/leg4.5_img/bgstory_img/bgstory_ 02.jpg http://img.joymax.com/property/silkroad/silkroado nline_3/us/ter_img/leg4.5_img/bgstory_img/bgstory_ 03.jpg http://img.joymax.com/property/silkroad/silkroado nline_3/us/ter_img/leg4.5_img/bgstory_img/bgstory_ 04.jpg ~...
[Update]TzPhQy UPDATE 4.6.21
05/30/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 2 Replies
For the new UPDATE 4.6.21 Thanks me if i helped C Ya : D (use winrar, and change new "version.dat" in tzphqy folder)
Vorschau auf das nächste Update!/Update Preview!
10/26/2008 - General Gaming Discussion - 1 Replies
GERMAN/DEUTSCH ENGLISCH/ENGLISH: Kommentar: Nun hier sieht man bereits die erste Erfolge des neuen Game Director!. Das Mördersystem kommt endlich und das Kampfsystem wird verbessert! Was gibt es besseres?. Vorallem wird nun endlich das Questloch (ca lvl. 50-60) gefüllt mit einem neuen Quest Gebiet. Das gute daran ist das Funcom die Tipps der Community zu Herzen genommen hat. Also ich mag den Game Director immer mehr :) /discuss



All times are GMT +1. The time now is 01:47.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.