捐赠 | 广告 | 注册 | 发布 | 上传 | 关于我们    
  粤ICP备10103342号-1 DELPHI盒子 | 盒子文章 | 盒子问答悬赏 | 最新更新 | 盒子检索 | 下载中心 | 高级搜索    
  精品专区 | 繁體中文 | 奖励公告栏 | 直通车账号登陆 | 关闭GOOGLE广告 | 临时留言    
 
广告
评论:MIR2 传奇服务端所有代码
2008110 39597 2010/2/22 11:15:29
 下完怎么用啊    我想找能修改游戏速度的代码
rainbar 31697 2007/11/8 11:58:44
to:xglangzi

你有新的代码吗?能不能发一份给我,rainbar@163.com,或者QQ:120567477,谢谢!
xglangzi 31449 2007/10/15 15:49:47
呵呵,好久以前的代码了,要新的,我这多
mopewolf 27177 2006/11/16 14:37:04
这个代码不能打开翎风得ID.DB、HUM.DB和MIR.DB啊,好像现在翎风和BLUE得这三个自定义得库得格式都变了,谁有翎风最新得这三个DB得格式啊
yczwd 27137 2006/11/14 15:48:03
发现一处BUG,索取物品索引的一个函数中,对数据的定义有误,导致NPC商品列不出来。
sun_catboy 26982 2006/11/4 9:17:31
好代码呀!如果有时间一定研究一下这个东西呀!
tiankunmin 26905 2006/10/30 14:58:45
真正的传奇2都是Delphi写的 所谓的VC的 那些都是模拟器而已。
wu_yanan2003 26815 2006/10/25 17:10:58
    搜遍整个工程, 连个CreateIoCompletionPort 都没有....
还是看VC的源码吧.
starsoul 26774 2006/10/23 21:45:52
有些控件找不到,能不能一起打个包?
muzisoft 26759 2006/10/23 16:50:43
从sourceforget下的??
siow 26751 2006/10/23 11:28:12
赞一个,真是好人!
dgy_snakeking 26748 2006/10/23 10:44:31
大家看下这段代码,解释一下
//武器升级设置
  procedure CheckWeaponUpgradeStatus(UserItem:pTUserItem); //004C27C0
  begin
    //if (UserItem.btValue[0] + UserItem.btValue[1] + UserItem.btValue[2]) < 20 then begin
    if (UserItem.btValue[0] + UserItem.btValue[1] + UserItem.btValue[2]) < g_Config.nUpgradeWeaponMaxPoint then begin
      case UserItem.btValue[10] of
        1: UserItem.wIndex:=0;
        10..13: UserItem.btValue[0]:=UserItem.btValue[0] + UserItem.btValue[10] - 9;
        20..23: UserItem.btValue[1]:=UserItem.btValue[1] + UserItem.btValue[10] - 19;
        30..33: UserItem.btValue[2]:=UserItem.btValue[2] + UserItem.btValue[10] - 29;
      end;
    end else UserItem.wIndex:=0;
    UserItem.btValue[10]:=0;
  end;
  procedure CheckWeaponUpgrade(); //004C2854
  var
    UseItems:TUserItem;
    PlayObject:TPlayObject;
    StdItem:TItem;
  begin
    if m_UseItems[U_WEAPON].btValue[10] > 0 then begin
      UseItems:=m_UseItems[U_WEAPON];
      CheckWeaponUpgradeStatus(@m_UseItems[U_WEAPON]);
      if m_UseItems[U_WEAPON].wIndex = 0 then begin
        SysMsg(g_sTheWeaponBroke,c_Red,t_Hint);
        PlayObject:=TPlayObject(Self);
        PlayObject.SendDelItems(@UseItems);
        //PlayObject.StatusChanged;
        SendRefMsg(RM_BREAKWEAPON,0,0,0,0,'');
        StdItem:=UserEngine.GetStdItem(UseItems.wIndex);
        //004C29E0
        if StdItem.NeedIdentify = 1 then
          AddGameDataLog('21' +  #9 +
          m_sMapName + #9 +
          IntToStr(m_nCurrX) + #9 +
          IntToStr(m_nCurrY) + #9 +
          m_sCharName + #9 +
          //UserEngine.GetStdItemName(UseItems.wIndex) + #9 +
          StdItem.Name + #9 +
          IntToStr(UseItems.MakeIndex) + #9 +
          '1' + #9 +
          '0');
        FeatureChanged();
      end else begin
        SysMsg(sTheWeaponRefineSuccessfull,c_Red,t_Hint);
        PlayObject:=TPlayObject(Self);
        PlayObject.SendUpdateItem(@m_UseItems[U_WEAPON]);
        StdItem:=UserEngine.GetStdItem(UseItems.wIndex);
        //004C2B14
        if StdItem.NeedIdentify = 1 then
          AddGameDataLog('20' +  #9 +
          m_sMapName + #9 +
          IntToStr(m_nCurrX) + #9 +
          IntToStr(m_nCurrY) + #9 +
          m_sCharName + #9 +
          //UserEngine.GetStdItemName(UseItems.wIndex) + #9 +
          StdItem.Name + #9 +
          IntToStr(UseItems.MakeIndex) + #9 +
          '1' + #9 +
          '0');
        RecalcAbilitys();
        SendMsg(Self,RM_ABILITY,0,0,0,0,'');
        SendMsg(Self,RM_SUBABILITY,0,0,0,0,'');
      end;
    end;
  end;
var
  AttackTarget :TBaseObject;
  boPowerHit   :Boolean;
  boFireHit    :Boolean;
  boCrsHit     :Boolean;
  bo41         :Boolean;
  boTwinHit    :Boolean;
  bo43         :Boolean;
  wIdent       :Word;
  nCheckCode   :Integer;
ResourceString
  sExceptionMsg = '[Exception] TBaseObject::AttackDir Code: %d';
begin //004C2C50
  nCheckCode:=0;
try
  if (wHitMode = 5) and (m_MagicBanwolSkill <> nil) then begin //半月
    if m_WAbil.MP > 0 then begin
      DamageSpell(m_MagicBanwolSkill.MagicInfo.btDefSpell + GetMagicSpell(m_MagicBanwolSkill));
      HealthSpellChanged();
    end else wHitMode:=RM_HIT;
  end;
  if (wHitMode = 12) and (m_MagicRedBanwolSkill <> nil) then begin
    if m_WAbil.MP > 0 then begin
      DamageSpell(m_MagicRedBanwolSkill.MagicInfo.btDefSpell + GetMagicSpell(m_MagicRedBanwolSkill));
      HealthSpellChanged();
    end else wHitMode:=RM_HIT;
  end;
  if (wHitMode = 8) and (m_MagicCrsSkill <> nil) then begin
    if m_WAbil.MP > 0 then begin
      DamageSpell(m_MagicCrsSkill.MagicInfo.btDefSpell + GetMagicSpell(m_MagicCrsSkill));
      HealthSpellChanged();
    end else wHitMode:=RM_HIT;
  end;

  nCheckCode:=4;
  m_btDirection:=nDir;
  if TargeTBaseObject = nil then begin
    nCheckCode:=41;
    AttackTarget:=GetPoseCreate();
  end else AttackTarget:=TargeTBaseObject;
  if (AttackTarget <> nil) and (m_UseItems[U_WEAPON].wIndex > 0) then begin
    nCheckCode:=42;
    CheckWeaponUpgrade();
  end;
  nCheckCode:=5;
  boPowerHit:=m_boPowerHit;
  boFireHit:=m_boFireHitSkill;
  boCrsHit:=m_boCrsHitkill;
  bo41:=m_bo41kill;
  boTwinHit:=m_boTwinHitSkill;
  bo43:=m_bo43kill;
  if _Attack(wHitMode,AttackTarget) then begin
    nCheckCode:=6;
    SetTargetCreat(AttackTarget); //$FFF2
    nCheckCode:=7;
  end;
  wIdent:=RM_HIT;
  if m_btRaceServer = RC_PLAYOBJECT then begin
    case wHitMode of
      0: wIdent:=RM_HIT;
      1: wIdent:=RM_HEAVYHIT;
      2: wIdent:=RM_BIGHIT;
      3: if boPowerHit then wIdent:=RM_SPELL2;
      4: if m_MagicErgumSkill <> nil then wIdent:=RM_LONGHIT;
      5: if m_MagicBanwolSkill <> nil then wIdent:=RM_WIDEHIT;
      7: if boFireHit then wIdent:=RM_FIREHIT;
      8: if m_MagicCrsSkill <> nil then wIdent:=RM_CRSHIT;
      9: if boTwinHit then wIdent:=RM_TWINHIT;
      {10: if boTwinHit then wIdent:=RM_TWINHIT;
      11: if bo43 then wIdent:=RM_43;}
      12: if m_MagicRedBanwolSkill <> nil then wIdent:=RM_WIDEHIT;
    end;
  end;
  nCheckCode:=8;
  SendAttackMsg(wIdent,m_btDirection,m_nCurrX,m_nCurrY);
  nCheckCode:=9;
except
  on e: Exception do begin
    MainOutMessage(format(sExceptionMsg,[nCheckCode]));
    MainOutMessage(E.Message);
  end;
end;
end;
dgy_snakeking 26747 2006/10/23 10:20:53
武器升级算法是怎么设计的??????????
zhude 26746 2006/10/23 10:17:44
Very GooooooooooD
myso 26745 2006/10/23 10:15:24
不知道怎么用,,,,我是菜鸟
dgy_snakeking 26744 2006/10/23 9:59:16
哪位可否告诉我武器升级的代码在哪里?谢谢!
harmy 26740 2006/10/23 9:36:26
潜水多年了,看到这样的代码不得不出来说声谢谢!
swgame 26737 2006/10/23 8:51:58
已下载,看看,真诚的谢谢您.
mudropmu 26732 2006/10/23 8:01:09
真好呀。
第一页 上一页 下一页 最后页 有 19 条纪录 共1页 1 - 19
 用户名:
 密 码:
自动登陆(30天有效)
 
  DELPHI盒子版权所有 技术支持:深圳市麟瑞科技有限公司 1999-2024 V4.01 粤ICP备10103342号-1 更新RSS列表