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

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

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

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

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

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

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

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

// Level 20

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

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

    case 15:   // 毅力
      {
    uint32 price=20000;// 2G
    uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
    if (currentgold>=price){
    int32 newgold = currentgold - price;
    Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
        pCreature->CastSpell(Plr, 8100, 0); (责任编辑:admin)

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