ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
این اسکریبت نسبت به قبلی علاوه بر گلد میتونید آیتم و اسپل هم میتونید برا reward level بزارید
#include "ScriptMgr.h" class player_jayeze : public PlayerScript {
public:
player_jayeze() : PlayerScript("player_jayeze") { }
void OnLevelChanged(Player* player, uint8 newLevel)
{
uint32 money, item, item2, spell;
switch(++newLevel)
{
case 30:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 60:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 90:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 120:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 150:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 180:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 200:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 230:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
case 255:
money = meghdar money mored nazar;
item = entry item mored nazar;
item2 = entry item mored nazar;
spell = id spell mored nazar;
break;
default:
return;
}
std::ostringstream ss;
ss << "|TInterface\\icons\\Ability_Mage_LivingBomb:20|t tabrik " << player->GetName() << " baraye residan be level " << (uint32)newLevel;
sWorld->SendServerMessage(SERVER_MSG_STRING, ss.str().c_str());
std::ostringstream ss2;
ss2 << "baraye talash dar level be shoma jayeza ehda shode ast!! " << money << " gold and a special item!";
player->GetSession()->SendNotification(ss2.str().c_str());
player->ModifyMoney(money*GOLD);
player->AddItem(item, 1);
player->AddItem(item2, 1);
player->learnSpell(spell, false);
}
}; void AddSC_player_jayeze()
{
new player_jayeze();
}