织梦CMS - 轻松建站从此开始!

天堂系列-新天堂II殿堂级|就玩天堂2发布网站 9WTT2.ORG

当前位置: 主页 > 天堂2私服 >

魔兽私服NPC增加玩家属性(5)

时间:2011-06-05 12:03来源: 作者: 点击:
{ uint32 price=30000;// 3G uint32 currentgold = Plr-GetUInt32Value(PLAYER_FIELD_COINAGE); if (currentgold=price){ int32 newgold = currentgold - price; Plr-SetUInt32Value(PLAYER_FIELD_COINAGE,newgold)

      {
    uint32 price=30000;// 3G
    uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
    if (currentgold>=price){
    int32 newgold = currentgold - price;
    Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
        pCreature->CastSpell(Plr, 8114, 0);
    pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你已经受到祝福! " );
    }else{
      pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你没有足够的金币 $N. " );
    }
    }
      break;

    case 22:   // 敏捷
      {
    uint32 price=30000;// 3G
    uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
    if (currentgold>=price){
    int32 newgold = currentgold - price;
    Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
        pCreature->CastSpell(Plr, 8117, 0);
    pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你已经受到祝福! " );
    }else{
      pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你没有足够的金币 $N. " );
    }
    }
      break;

// Level 40

    case 23:   // 力量
      {
    uint32 price=40000;// 4G
    uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
    if (currentgold>=price){
    int32 newgold = currentgold - price;
    Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
        pCreature->CastSpell(Plr, 12179, 0);
    pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你已经受到祝福! " );
    }else{
      pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你没有足够的金币 $N. " );
    }
    }
      break;

    case 24:   // 智力
      {
    uint32 price=40000;// 4G
    uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
    if (currentgold>=price){
    int32 newgold = currentgold - price;
    Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
        pCreature->CastSpell(Plr, 12176, 0);
    pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你已经受到祝福! " );
    }else{
      pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你没有足够的金币 $N. " );
    }
    }
      break;

    case 25:   // 毅力
      {
    uint32 price=40000;// 4G
    uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
    if (currentgold>=price){
    int32 newgold = currentgold - price;
    Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
        pCreature->CastSpell(Plr, 12178, 0);
    pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你已经受到祝福! " );
    }else{
      pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, " 你没有足够的金币 $N. " );
    }
    }
      break;

    case 26:   // 精神
      {
    uint32 price=40000;// 4G
    uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
    if (currentgold>=price){
    int32 newgold = currentgold - price;
    Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
        pCreature->CastSpell(Plr, 12177, 0); (责任编辑:admin)

织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片
栏目列表
推荐内容