Check the following in your gwa2. Mine is selling.
Code:
SetValue('SellItemFunction', '0x' & Hex(GetScannedAddress('ScanSellItemFunction', -85), 8))
Code:
_('ScanSellItemFunction:')
AddPattern('8B4D2085C90F858E')
List of all CtoGS headers, it's from GWCA:
Code:
const unsigned short CtoGS_MSGDisconnect = 0x9;
const unsigned short CtoGS_MSGRequestItems = 0x97;
const unsigned short CtoGS_MSGRequestSpawn = 0x8D;
const unsigned short CtoGS_MSGRequestAgents = 0x96;
const unsigned short CtoGS_MSGCallTarget = 0x28;
const unsigned short CtoGS_MSGGoNPC = 0x3F;
const unsigned short CtoGS_MSGGoGadget = 0x57;
const unsigned short CtoGS_MSGGoPlayer = 0x39;
const unsigned short CtoGS_MSGPickUpItem = 0x45;
const unsigned short CtoGS_MSGAttack = 0x2C;
const unsigned short CtoGS_MSGCancelAction = 0x2E;
const unsigned short CtoGS_MSGOpenChest = 0x59;
const unsigned short CtoGS_MSGDropBuff = 0x2F;
const unsigned short CtoGS_MSGDropItem = 0x32;
const unsigned short CtoGS_MSGDropGold = 0x35;
const unsigned short CtoGS_MSGEquipItem = 0x36;
const unsigned short CtoGS_MSGDonateFaction = 0x3B;
const unsigned short CtoGS_MSGDialog = 0x41;
const unsigned short CtoGS_MSGMouseMove = 0x44;
const unsigned short CtoGS_MSGUseSkill = 0x4C;
const unsigned short CtoGS_MSGCallSkill = 0x2A;
const unsigned short CtoGS_MSGSetSkillbarSkill = 0x61;
const unsigned short CtoGS_MSGChangeSecondary = 0x47;
const unsigned short CtoGS_MSGSetAttributes = 0x10;
const unsigned short CtoGS_MSGLoadSkillbar = 0x62;
const unsigned short CtoGS_MSGRequestQuote = 0x52;
const unsigned short CtoGS_MSGTransactItem = 0x53;
const unsigned short CtoGS_MSGTransactTrade = 0x50;
const unsigned short CtoGS_MSGStartSalvage = 0x7C;
const unsigned short CtoGS_MSGSalvageMaterials = 0x7F;
const unsigned short CtoGS_MSGSalvageMod = 0x80;
const unsigned short CtoGS_MSGIdentifyItem = 0x71;
const unsigned short CtoGS_MSGMoveItem = 0x77;
const unsigned short CtoGS_MSGAcceptAllItems = 0x78;
const unsigned short CtoGS_MSGUseItem = 0x83;
const unsigned short CtoGS_MSGStartTrade = 0x4F;
const unsigned short CtoGS_MSGAcknowledgeTrade = 0x0;
const unsigned short CtoGS_MSGAcceptTrade = 0x7;
const unsigned short CtoGS_MSGCancelTrade = 0x1;
const unsigned short CtoGS_MSGAddItemTrade = 0x2;
const unsigned short CtoGS_MSGRemoveItemTrade = 0x5;
const unsigned short CtoGS_MSGChangeOffer = 0x6;
const unsigned short CtoGS_MSGSubmitOffer = 0x3;
const unsigned short CtoGS_MSGAddNpc = 0xA5;
const unsigned short CtoGS_MSGKickNpc = 0xAE;
const unsigned short CtoGS_MSGInvitePlayer = 0xA6;
const unsigned short CtoGS_MSGInvitePlayerByName = 0xA7;
const unsigned short CtoGS_MSGKickPlayer = 0xAF;
const unsigned short CtoGS_MSGAcceptPartyRequest = 0xA4;
const unsigned short CtoGS_MSGDenyPartyRequest = 0xA2;
const unsigned short CtoGS_MSGEnterChallenge = 0xAB;
const unsigned short CtoGS_MSGReturnToOutpost = 0xAD;
const unsigned short CtoGS_MSGAbandonQuest = 0x12;
const unsigned short CtoGS_MSGActivateQuest = 0x13;
const unsigned short CtoGS_MSGRequestQuest = 0x16;
const unsigned short CtoGS_MSGSetHeroAggression = 0x17;
const unsigned short CtoGS_MSGLockHeroTarget = 0x18;
const unsigned short CtoGS_MSGChangeHeroSkillSlotState = 0x1C;
const unsigned short CtoGS_MSGCommandHero = 0x1E;
const unsigned short CtoGS_MSGCommandAll = 0x1F;
const unsigned short CtoGS_MSGAddHero = 0x23;
const unsigned short CtoGS_MSGKickHero = 0x24;
const unsigned short CtoGS_MSGTravelGH = 0xB6;
const unsigned short CtoGS_MSGLeaveGH = 0xB8;
const unsigned short CtoGS_MSGTravelTo = 0xB7;
const unsigned short CtoGS_MSGSendChat = 0x69;
const unsigned short CtoGS_MSGSetDisplayedTitle = 0x5D;
const unsigned short CtoGS_MSGRemoveDisplayedTitle = 0x5E;
const unsigned short CtoGS_MSGSkipCinematic = 0x68;
const unsigned short CtoGS_MSGUnlockSkillByTome = 0x72;
const unsigned short CtoGS_MSGDeleteItem = 0x6E;
const unsigned short CtoGS_MSGSplitStack = 0x7A;
const unsigned short CtoGS_MSGChangeGold = 0x81;
const unsigned short CtoGS_MSGSwitchMode = 0xA1;
const unsigned short CtoGS_MSGLeaveParty = 0xA8;
const unsigned short CtoGS_MSGTick = 0xB5;
const unsigned short CtoGS_MSGDrawMap = 0x31;
Since i've updated the TargetNearestEnemy() function
from this
Code:
Func TargetNearestEnemy()
Return PerformAction(0x93, 0x18)
EndFunc
to this (thanks to afmart ;))
Code:
Func TargetNearestEnemy()
Local $target = GetNearestEnemyToAgent(-2)
ChangeTarget($target)
EndFunc
I've had a lot of game crashes. I think this is caused by the ChangeTarget() function. In the GWCA code I see another offset for the memory pattern. I think that causes the error. Until now, all game clients are running again without major problems.
Code:
;SetValue('ChangeTargetFunction', '0x' & Hex(GetScannedAddress('ScanChangeTargetFunction', -119), 8))
SetValue('ChangeTargetFunction', '0x' & Hex(GetScannedAddress('ScanChangeTargetFunction', -0x78), 8))
Note: -0x78 is -120 in decimal
I would just like to know how to read this data from the memory ...