Items on TW version

i am working on mob spawns

ce8b61b59452cee18a03c8ad3bdf4a95 - Items on TW version - RaGEZONE Forums


also items

F%2Fi.gyazo.com%2F6574097611aec1f95b8da0fa00663001 - Items on TW version - RaGEZONE Forums

Only one mob? ***** please.... :P :P

please1 - Items on TW version - RaGEZONE Forums please2 - Items on TW version - RaGEZONE Forums
 
@Xanu@Nicolas321

Fixed,but also can not add new skill In db
-------------------------->i using akcore file for tw!
can yours tell me how to fix?
 
Last edited:
hello guys.
How to find data for base stat of items and bonus from upgrade
d07a86c7067340728d85d3ee4bef591d - Items on TW version - RaGEZONE Forums


This jacket got 14 M. Def +2 and 41 Energy Def + 4.
Where i can find that data in packet/structure/edf? Its ItemOption data related to items?
 
hi all
im done Item/skills funcion can load items/skills from db change slots and add items by comand GM...

i try spawn mob and players but all times my client crash can someone help me ? i work on akcore code Tw

Xanu - Items on TW version - RaGEZONE Forums
 
the client crash because you send the wrong structure, try to send everything with 0 and go testing byte to byte, do the tests in the position 0,0,0
Sorry for my english.
bolasdragon - Items on TW version - RaGEZONE Forums
:ott1::ott1::ott1::ott1:
 
like that?

CNtlPacket packet(sizeof(sGU_OBJECT_CREATE));
sGU_OBJECT_CREATE * res = (sGU_OBJECT_CREATE *)packet.GetPacketData();


res->wOpCode = GU_OBJECT_CREATE;
res->sObjectInfo.objType = OBJTYPE_MOB;
res->handle = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurLoc.x = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurLoc.y = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurLoc.z = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurDir.x = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurDir.y = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurDir.z = 0;
res->sObjectInfo.mobState.sCharStateBase.byStateID = CHARSTATE_SPAWNING;
res->sObjectInfo.mobState.sCharStateBase.bFightMode = false;
res->sObjectInfo.mobBrief.tblidx = 0;
res->sObjectInfo.mobBrief.wCurEP = 0;
res->sObjectInfo.mobBrief.wMaxEP = 0;
res->sObjectInfo.mobBrief.wCurLP = 0;
res->sObjectInfo.mobBrief.wMaxLP = 0;
res->sObjectInfo.mobBrief.fLastRunningSpeed =0;
res->sObjectInfo.mobBrief.fLastWalkingSpeed = 0;
pSession->myCCSession->InsertIntoMyMonsterList(res->handle, curpos, uiMobId);


packet.SetPacketLen(sizeof(sGU_OBJECT_CREATE));
g_pApp->Send(pSession->GetSession(), &packet);
 
i send do this but only see name off mob level is 0 too can you send me any exemple?
if i change pos x y etc... the mob still on 0
Xanu - Items on TW version - RaGEZONE Forums


void CClientSession::SendMonsterCreate(CNtlPacket * pPacket, CGameServer * app)
{
CMobTable* pMyMobTable = app->g_pTableContainer->GetMobTable();



CNtlPacket packet(sizeof(sGU_OBJECT_CREATE));
sGU_OBJECT_CREATE * res = (sGU_OBJECT_CREATE *)packet.GetPacketData();
CMonster::MonsterData * cr = new CMonster::MonsterData;


cr->Level = 70;
//cr->CurEP = 100;
//cr->CurLP =100;
//cr->FightMode = false;
//cr->IsDead = false;
//cr->isSpawned = true;
cr->MonsterID = 1581102;
cr->MonsterSpawnID = 1581102;
// cr->Spawn_Loc = 0;
//cr->Spawn_Dir = 0;
//cr->MaxEP = 0;
//cr->MaxLP = 0;
//cr->Spawn_Quantity = 0;
//cr->Move_DelayTime = 0;
//cr->Run_Speed = 0;
//cr->Run_Speed_origin = 0;
//cr->Walk_Speed = 0;
//cr->Walk_Speed_origin = 0;
//cr->Spawn_Cool_Time = 1 * 1000;
//cr->target = 0;
//cr->curPos = 0;
//cr->Basic_aggro_point = 0;
//cr->Attack_range = 0;
//cr->MaxchainAttackCount = 1;
//cr->chainAttackCount = 0;
//cr->UniqueID = CreateUniqueId();
//m_map_Monster.insert(std::make_pair(cr->UniqueID, cr));


res->wOpCode = GU_OBJECT_CREATE;
res->sObjectInfo.objType = OBJTYPE_MOB;
res->handle = 9000;
res->sObjectInfo.mobState.sCharStateBase.vCurLoc.x = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurLoc.y = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurLoc.z = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurDir.x = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurDir.y = 0;
res->sObjectInfo.mobState.sCharStateBase.vCurDir.z = 0;
res->sObjectInfo.mobState.sCharStateBase.byStateID = CHARSTATE_SPAWNING;
res->sObjectInfo.mobState.sCharStateBase.bFightMode = false;
res->sObjectInfo.mobBrief.tblidx = 1581102;
res->sObjectInfo.mobBrief.wCurEP = 100;
res->sObjectInfo.mobBrief.wMaxEP = 100;
res->sObjectInfo.mobBrief.wCurLP = 100;
res->sObjectInfo.mobBrief.wMaxLP = 100;
res->sObjectInfo.mobBrief.fLastRunningSpeed = 0;
res->sObjectInfo.mobBrief.fLastWalkingSpeed = 0;
cr->Level = 70;
cr->Scale = 100;
packet.SetPacketLen(sizeof(sGU_OBJECT_CREATE));
g_pApp->Send(this->GetHandle(), &packet);






}
 
Back