uint32 Unit:ealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
he->CombatStopWithPets(true); copyright dedecms
he->DuelComplete(DUEL_INTERUPTED);
} 本文来自织梦
- // battleground things (do this at the end, so the death state flag will be properly set to handle in the bg->handlekill)
- if(pVictim->GetTypeId() == TYPEID_PLAYER && ((Player*)pVictim)->InBattleGround())
//杀怪获取MG
+if( (pVictim->GetTypeId() == TYPEID_UNIT) && player)
+{
+ //Creature *killed = ((Creature*)pVictim);
+
+ player->ModifyMG(3);//这句会让怪物的死亡效果不触发,就是假死,虽然死了,但是客户端显示的还是没死的样子
+ player->GetSession()->SendAreaTriggerMessage(_PrintfUTF8("获得MG %u",3));
+}
uint32 GetMG() { return GetUInt32Value (PLAYER_MG); }
void ModifyMG( int32 d )
{
if(d < 0)
SetMG (GetMG() > uint32(-d) ? GetMG() + d : 0);
else
SetMG ( GetMG() + d );
}
void SetMG( uint32 value )
{
SetUInt32Value (PLAYER_MG, value);//PLAYER_MG是自己扩展的属性字段
dedecms.com
1.76精品传奇_1.76天下毁灭_1.76复古传奇_英雄合击_中变靓装传奇_无忧传奇
传奇花屏补丁,花屏补丁,土城花屏补丁,盟重土城花屏补丁下载,土城花屏补丁下载,沙巴克花屏补丁,传奇土城花屏补丁下载
网站每天发布最新、最好的传奇版本下载和与传奇服务端配套开区传奇模版,网游技术教程全部免费下载!
无忧网络是目前唯一家所有的传奇服务端,传奇私服花屏补丁,盟重花屏补丁和传奇客户端下载都经过站长亲自测试并配有真实测试图!
所有的工具软件和传奇版本在发布之前,都会经过站长亲自测试,保证chuanqisf可以进入游戏,所有软件都无毒无插件!
本站声明:本站所有技术资料与下载资源均为网络搜集整理,并不代表本站的观点与立场,如有侵犯您的权益,请来信指出,本站将立即改正Copyright © 2002-2014 无忧网络 版权所有蜀ICP备09041899号