Вот патч на скриптдев2, использую для пвп сервера.
Изучаются классовые спелы, дающиеся за квесты, изучаются все возможные виды оружия, которые может носить данный класс.
15к голды, используем на сервере торговцев шмотом(любым), для того, чтобы зашёл получил лвл и скилы, протренился, раскачал таланты, затарился и вперёд на арены или бг.
Вешал скрипт на начальную еду=), когда появляешься. Кстати сейчас внесли стартовый лвл, так что соответственная часть кода может не потребоваться.
Code
Index: scripts/item/item_scripts.cpp
===================================================================
--- scripts/item/item_scripts.cpp (revision 290)
+++ scripts/item/item_scripts.cpp (working copy)
@@ -161,6 +161,212 @@
return true;
}
+bool ItemUse_item_auto_pvp(Player *player, Item* _Item, SpellCastTargets const& targets)
+{
+ uint8 pclass = player->getClass();
+ if (player->getLevel() < 70)
+ {
+ player->GiveLevel(70);
+ player->InitTalentForLevel();
+
+ player->ModifyMoney(150000000);
+ }
+
+
+ switch(pclass)
+ {
+ case 1: //warrior
+ player->learnSpell(71);
+ player->learnSpell(2458);
+ player->learnSpell(20252);
+
+ player->learnSpell(202);//two-handed swords+
+ player->learnSpell(199);//two-handed maces+
+ player->learnSpell(197);//two-handed axes+
+ player->learnSpell(2567);//thrown+
+ player->learnSpell(227);//staves+
+ player->learnSpell(200);//polearm+
+ player->learnSpell(201);//one-handed swords+
+ player->learnSpell(198);//one-handed maces+
+ player->learnSpell(196);//one-handed axes+
+ player->learnSpell(266);//guns+
+ player->learnSpell(15590);//fist weapons
+ player->learnSpell(1180);//daggers+
+ player->learnSpell(5011);//crossbows+
+ player->learnSpell(264);//bows+
+
+ break;
+
+
+ case 2: //paladin
+ player->learnSpell(7328);
+ if (player->getRace() == 10) //for bloodelves
+ {
+ player->learnSpell(34769);//mount
+ player->learnSpell(34767);//mount
+ }else //other
+ {
+ player->learnSpell(13819);//mount
+ player->learnSpell(23214);//mount
+ }
+
+ player->learnSpell(201);//one-handed swords+
+ player->learnSpell(198);//one-handed maces+
+ player->learnSpell(196);//one-handed axes+
+ player->learnSpell(200);//polearm+
+ player->learnSpell(202);//two-handed swords+
+ player->learnSpell(199);//two-handed maces+
+ player->learnSpell(197);//two-handed axes+
+
+ break;
+
+
+ case 3: //hunter
+ player->learnSpell(1515);
+ player->learnSpell(883);
+ player->learnSpell(2641);
+ player->learnSpell(6991);
+ player->learnSpell(5149);
+ player->learnSpell(982);
+
+ player->learnSpell(202);//two-handed swords+
+ player->learnSpell(197);//two-handed axes+
+ player->learnSpell(2567);//thrown+
+ player->learnSpell(227);//staves+
+ player->learnSpell(200);//polearm+
+ player->learnSpell(201);//one-handed swords+
+ player->learnSpell(196);//one-handed axes+
+ player->learnSpell(266);//guns+
+ player->learnSpell(15590);//fist weapons
+ player->learnSpell(1180);//daggers+
+ player->learnSpell(5011);//crossbows+
+ player->learnSpell(264);//bows+
+
+ break;
+
+
+ case 4: //rogue
+ player->learnSpell(2842);
+
+ player->learnSpell(2567);//thrown+
+ player->learnSpell(201);//one-handed swords+
+ player->learnSpell(198);//one-handed maces+
+ player->learnSpell(266);//guns+
+ player->learnSpell(15590);//fist weapons
+ player->learnSpell(1180);//daggers+
+ player->learnSpell(5011);//crossbows+
+ player->learnSpell(264);//bows+
+
+ break;
+
+
+ case 5: //priest
+ player->learnSpell(227);//staves+
+ player->learnSpell(198);//one-handed maces+
+ player->learnSpell(1180);//daggers+
+
+ break;
+
+
+ case 7: //shaman
+ player->learnSpell(199);//two-handed maces+
+ player->learnSpell(197);//two-handed axes+
+ player->learnSpell(227);//staves+
+ player->learnSpell(198);//one-handed maces+
+ player->learnSpell(196);//one-handed axes+
+ player->learnSpell(15590);//fist weapons
+ player->learnSpell(1180);//daggers+
+
+ break;
+
+
+ case 8: //mage
+ player->learnSpell(227);//staves+
+ player->learnSpell(201);//one-handed swords+
+ player->learnSpell(1180);//daggers+
+
+ break;
+
+
+ case 9: //warlock
+ player->learnSpell(688);
+ player->learnSpell(697);
+ player->learnSpell(712);
+ player->learnSpell(691);
+ player->learnSpell(5784);
+ player->learnSpell(23161);
+
+ player->learnSpell(227);//staves+
+ player->learnSpell(201);//one-handed swords+
+ player->learnSpell(1180);//daggers+
+
+ break;
+
+
+ case 11: //druid
+ player->learnSpell(5487);
+ player->learnSpell(1066);
+
+ player->learnSpell(199);//two-handed maces+
+ player->learnSpell(227);//staves+
+ player->learnSpell(198);//one-handed maces+
+ player->learnSpell(15590);//fist weapons
+ player->learnSpell(1180);//daggers+
+
+ break;
+
+
+ default: return true;
+ };
+
+ player->learnSpell(3273); //FirstAid_1-75
+ player->learnSpell(27028);//FirstAid_300-375
+
+ player->UpdateSkillsToMaxSkillsForLevel();
+
+ return true;
+}
+
void AddSC_item_scripts()
{
Script *newscript;
@@ -194,4 +400,9 @@
newscript->Name="item_zezzaks_shard";
newscript->pItemUse = ItemUse_item_zezzak_shard;
m_scripts[nrscripts++] = newscript;
+
+ newscript = new Script;
+ newscript->Name="item_auto_pvp";
+ newscript->pItemUse = ItemUse_item_auto_pvp;
+ m_scripts[nrscripts++] = newscript;
}