View Single Post
Old 29.03.2006, 13:09   #4
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

int nearestTown;
switch(nearestTown){
 case 0: …;
 case 1: …;
 …
 case 15: …;
 default : …;
}

琪琪学习中……
未发现四章内容。
UseItem分析
00507520 UseItemPacket
mov [ebp-14],objectid
objectid ! = 0
~在冻结状态下,无法行动.请稍等.
~无法使用任务道具.
~交易时无法拾取或使用道具.
~请选择要强化的物品.
call dword ptr ds:[eax+234]
↓
00443630 CCreature::UseItem()
1 action_skill_reduce //消耗类技能
2 action_equip //装备道具
3 action_soulshot //灵魂弹
4 action_spiritshot //魔灵弹
5 action_skill_maintain //获得类技能
6 action_map_open //打开地图
↑
004A2F40 NpcUseItem
NPCSocket 0x22 cddd
ServerID,SMIndex,nClassID
call dword ptr ds:[edx+234]
Digital is offline