Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem]Pety


Rekomendowane odpowiedzi

Opublikowano

mam taki problem gdy chce przywolac peta to nic sie nie dzieje

 

oto syser z ch1

 

 

 







YSERR: Aug 23 23:46:13 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:46:22 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)
SYSERR: Aug 23 23:46:28 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:46:32 :: Click: CQuestManager::Click(pid=2, target_npc_name=Azrealus2) - NOT EXIST NPC RACE VNUM[34009]
SYSERR: Aug 23 23:46:38 :: GetMoveMotionSpeed: cannot find motion (name Azrealus2 race 34009 mode 0)
SYSERR: Aug 23 23:46:49 :: GetMoveMotionSpeed: cannot find motion (name Azrealus race 34004 mode 0)
SYSERR: Aug 23 23:46:53 :: GetMoveMotionSpeed: cannot find motion (name Azrealus2 race 34009 mode 0)
SYSERR: Aug 23 23:47:05 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)
SYSERR: Aug 23 23:47:06 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:47:14 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:47:18 :: GetMoveMotionSpeed: cannot find motion (name Azrealus race 34004 mode 0)
SYSERR: Aug 23 23:47:20 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:47:28 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)
SYSERR: Aug 23 23:47:35 :: GetMoveMotionSpeed: cannot find motion (name Azrealus2 race 34009 mode 0)
SYSERR: Aug 23 23:47:45 :: GetMoveMotionSpeed: cannot find motion (name Azrealus race 34004 mode 0)
SYSERR: Aug 23 23:47:48 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:47:58 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:47:58 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:48:01 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:48:22 :: GetMoveMotionSpeed: cannot find motion (name Azrealus race 34004 mode 0)
SYSERR: Aug 23 23:48:31 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)
SYSERR: Aug 23 23:48:43 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:48:45 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)
SYSERR: Aug 23 23:48:47 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:48:51 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:48:53 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:48:55 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)
SYSERR: Aug 23 23:48:57 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:49:05 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:49:06 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:49:09 :: GetMoveMotionSpeed: cannot find motion (name Azrealus race 34004 mode 0)
SYSERR: Aug 23 23:49:14 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:49:29 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:49:38 :: GetMoveMotionSpeed: cannot find motion (name Azrealus2 race 34009 mode 0)
SYSERR: Aug 23 23:49:38 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:49:51 :: GetMoveMotionSpeed: cannot find motion (name Azrealus race 34004 mode 0)
SYSERR: Aug 23 23:49:56 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:50:01 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:50:17 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:50:17 :: GetMoveMotionSpeed: cannot find motion (name Azrealus2 race 34009 mode 0)
SYSERR: Aug 23 23:50:30 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:50:40 :: GetMoveMotionSpeed: cannot find motion (name phoenix1 race 34001 mode 0)
SYSERR: Aug 23 23:50:42 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)
SYSERR: Aug 23 23:50:50 :: GetMoveMotionSpeed: cannot find motion (name Azrealus2 race 34009 mode 0)
SYSERR: Aug 23 23:50:58 :: GetMoveMotionSpeed: cannot find motion (name Azrealus2 race 34009 mode 0)
SYSERR: Aug 23 23:51:08 :: GetMoveMotionSpeed: cannot find motion (name Azrealus race 34004 mode 0)
SYSERR: Aug 23 23:51:12 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:51:14 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:51:34 :: GetMoveMotionSpeed: cannot find motion (name Lodowy Ptak race 34003 mode 0)
SYSERR: Aug 23 23:51:35 :: GetMoveMotionSpeed: cannot find motion (name Sarenka race 34002 mode 0)

 

 

 

a oto questlib

 

 







QuestFolder = get_locale_base_path().."/quest/"

-- Classe
PetSystem = {['Folder'] = QuestFolder.."io/pet/", ['ItemExp'] = 4000000, ['UpdateFrequency'] = 30, ['Flag'] = "active_pet", ['ExpFlag'] = "exp_blocked"}
-- Pet 1
PetSystem[1] =
{['Name'] = "Phoenix Ognia", ['Level'] = 22, ['Item'] = 53001, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=20,['min_level']=1,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.INT,['name']="Punkty Inteligencji",['max_points']=10,['min_level']=1,['desc']="+1 INT",['mult']=1,['tag']=" MP"},
{['type']=apply.STR,['name']="Punkty Siły",['max_points']=10,['min_level']=1,['desc']="+1 STR",['mult']=1,['tag']=" Force"},
{['type']=apply.DEX,['name']="Punkty Zreczności",['max_points']=10,['min_level']=1,['desc']="+1 DEX",['mult']=1,['tag']=" Esquive"},
{['type']=apply.PENETRATE_PCT,['name']="Szansa na przesz. Uderzenie",['max_points']=15,['min_level']=60,['desc']="+1% percing hits",['mult']=1,['tag']="% Percing"},
{['type']=apply.CRITICAL_PCT,['name']="Szansa na kryt. Uderzenie",['max_points']=15,['min_level']=80,['desc']="+1% coup critiques",['mult']=1,['tag']="% Critique"},
{['type']=apply.ATTBONUS_MONSTER,['name']="Silny przeciwko Potworom",['max_points']=10,['min_level']=100,['desc']="+1% anti monstre",['mult']=1,['tag']="% Anti monstre"},
{['type']=apply.MOV_SPEED,['name']="Szybkość ruchu'",['max_points']=10,['min_level']=100,['desc']="+1% vit. de dplt",['mult']=1,['tag']="% Vit. de dplt"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}
-- Pet 2
PetSystem[2] =
{['Name'] = "Lodowy Phoenix", ['Level'] = 23, ['Item'] = 53002, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=30,['min_level']=1,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.INT,['name']="Punkty Inteligencji",['max_points']=15,['min_level']=1,['desc']="+1 INT",['mult']=1,['tag']=" MP"},
{['type']=apply.STR,['name']="Punkty Siły",['max_points']=15,['min_level']=1,['desc']="+1 STR",['mult']=1,['tag']=" Force"},
{['type']=apply.DEX,['name']="Punkty Zreczności",['max_points']=15,['min_level']=1,['desc']="+1 DEX",['mult']=1,['tag']=" Esquive"},
{['type']=apply.PENETRATE_PCT,['name']="Szansa na przesz. Uderzenie",['max_points']=15,['min_level']=30,['desc']="+1% percing hits",['mult']=1,['tag']="% Percing"},
{['type']=apply.CRITICAL_PCT,['name']="Szansa na kryt. Uderzenie",['max_points']=15,['min_level']=60,['desc']="+1% coup critiques",['mult']=1,['tag']="% Critique"},
{['type']=apply.ATTBONUS_MONSTER,['name']="Silny przeciwko Potworom",['max_points']=10,['min_level']=90,['desc']="+1% anti monstre",['mult']=1,['tag']="% Anti monstre"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}
-- Pet 3
PetSystem[3] =
{['Name'] = "Sarenka", ['Level'] = 24, ['Item'] = 53003, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=20,['min_level']=1,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.INT,['name']="Punkty Inteligencji",['max_points']=10,['min_level']=1,['desc']="+1 INT",['mult']=1,['tag']=" MP"},
{['type']=apply.STR,['name']="Punkty Siły",['max_points']=10,['min_level']=1,['desc']="+1 STR",['mult']=1,['tag']=" Force"},
{['type']=apply.DEX,['name']="Punkty Zreczności",['max_points']=10,['min_level']=1,['desc']="+1 DEX",['mult']=1,['tag']=" Esquive"},
{['type']=apply.STEAL_HP,['name']="Regeneracja HP",['max_points']=10,['min_level']=30,['min_level']=30,['desc']="+1% ass. HP",['mult']=1,['tag']="% Absorption HP"},
{['type']=apply.PENETRATE_PCT,['name']="Szansa na przesz. Uderzenie",['max_points']=10,['min_level']=30,['desc']="+1% percing hits",['mult']=1,['tag']="% Percing"},
{['type']=apply.CRITICAL_PCT,['name']="Szansa na kryt. Uderzenie",['max_points']=10,['min_level']=60,['desc']="+1% coup critiques",['mult']=1,['tag']="% Critique"},
{['type']=apply.ATTBONUS_MONSTER,['name']="Silny przeciwko Potworom",['max_points']=10,['min_level']=60,['desc']="+1% anti monstre",['mult']=1,['tag']="% Anti monstre"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}
-- Pet 4
PetSystem[4] =
{['Name'] = "Mały Kostuch", ['Level'] = 25, ['Item'] = 53004, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=30,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.RESBONUS_WARRIOR,['name']="Odporność na Wojowników",['max_points']=10,['desc']="+1% res. guerrier",['mult']=1,['tag']="% Res. Guerrier"},
{['type']=apply.RESBONUS_ASSASSIN,['name']="Odporność na Ninja",['max_points']=10,['desc']="+1% res. ninja",['mult']=1,['tag']="% Res. Ninja"},
{['type']=apply.RESBONUS_SURA,['name']="Odporność na Sura",['max_points']=10,['desc']="+1% res. sura",['mult']=1,['tag']="% Res. Sura"},
{['type']=apply.RESBONUS_SHAMAN,['name']="Odporność na Szaman",['max_points']=10,['desc']="+1% res. shaman",['mult']=1,['tag']="% Res. Shaman"},
{['type']=apply.CAST_SPEED,['name']="Szybkość Zaklęć",['max_points']=15,['desc']="+1% vit. magique",['mult']=1,['tag']="% Vit. Magique"},
{['type']=apply.ATTBONUS_HUMAN,['name']="Silny przeciwko Ludziom",['max_points']=10,['desc']="+1% DH",['mult']=1,['tag']="% DH"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}
-- Pet 5
PetSystem[5] =
{['Name'] = "Bojowy Pies", ['Level'] = 26, ['Item'] = 53005, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=30,['min_level']=1,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.RESBONUS_WARRIOR,['name']="Odporność na Wojowników",['max_points']=15,['min_level']=20,['desc']="+1% res. guerrier",['mult']=1,['tag']="% res. Guerrier"},
{['type']=apply.ATTBONUS_WARRIOR,['name']="Silny przeciwko Wojownikom",['max_points']=15,['min_level']=20,['desc']="+1 att. contre guerrier",['mult']=1,['tag']="% att. contre Guerrier"},
{['type']=apply.CAST_SPEED,['name']="Szybkość Zaklęć",['max_points']=20,['min_level']=40,['desc']="+1% vit. magique",['mult']=1,['tag']="% Vit. magique"},
{['type']=apply.ATTBONUS_HUMAN,['name']="Silny przeciwko Ludziom",['max_points']=10,['min_level']=60,['desc']="+1% DH",['mult']=1,['tag']="% DH"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}
-- Pet 6
PetSystem[6] =
{['Name'] = "Mały Lew", ['Level'] = 27, ['Item'] = 53006, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=30,['min_level']=1,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.RESBONUS_ASSASSIN,['name']="Odporność na Ninja",['max_points']=15,['min_level']=20,['desc']="+1% res. ninja",['mult']=1,['tag']="% Res. Ninja"},
{['type']=apply.ATTBONUS_ASSASSIN,['name']="Silny przeciwko Ninja",['max_points']=15,['min_level']=20,['desc']="+1 att. contre ninja",['mult']=1,['tag']="% att. contre Ninja"},
{['type']=apply.CAST_SPEED,['name']="Szybkość Zaklęć",['max_points']=20,['min_level']=40,['desc']="+1% vit. magique",['mult']=1,['tag']="% Vit. Magique"},
{['type']=apply.ATTBONUS_HUMAN,['name']="Silny przeciwko Ludziom",['max_points']=10,['min_level']=60,['desc']="+1% DH",['mult']=1,['tag']="% DH"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}
-- Pet 7
PetSystem[7] =
{['Name'] = "Bojowy Świniak", ['Level'] = 28, ['Item'] = 53007, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=30,['min_level']=1,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.RESBONUS_SURA,['name']="Odporność na Sura",['max_points']=15,['min_level']=20,['desc']="+1% res. sura",['mult']=1,['tag']="% Res. Sura"},
{['type']=apply.ATTBONUS_SURA,['name']="Silny przeciwko Sura",['max_points']=15,['min_level']=20,['desc']="+1 att. contre sura",['mult']=1,['tag']="% att. contre Sura"},
{['type']=apply.CAST_SPEED,['name']="Szybkość Zaklęć",['max_points']=20,['min_level']=40,['desc']="+1% vit. magique",['mult']=1,['tag']="% Vit. Magique"},
{['type']=apply.ATTBONUS_HUMAN,['name']="Silny przeciwko Ludziom",['max_points']=10,['min_level']=60,['desc']="+1% DH",['mult']=1,['tag']="% DH"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}
-- Pet 8
PetSystem[8] =
{['Name'] = "Mały Tygrys", ['Level'] = 29, ['Item'] = 53008, ['MaxLevel'] = 99, ['WindowSize'] = 395,
['Skill']= {
{['type']=apply.MAX_HP,['name']="Punkty Witalności",['max_points']=30,['min_level']=1,['desc']="+100HP",['mult']=100,['tag']=" HP"},
{['type']=apply.RESBONUS_SHAMAN,['name']="Odporność na Szaman",['max_points']=15,['min_level']=20,['desc']="+1% res. shaman",['mult']=1,['tag']="% res. Shaman"},
{['type']=apply.ATTBONUS_SHAMAN,['name']="Silny przeciwko Szaman",['max_points']=15,['min_level']=20,['desc']="+1 att. contre shaman",['mult']=1,['tag']="% att. contre Shaman"},
{['type']=apply.CAST_SPEED,['name']="Szybkość Zaklęć",['max_points']=20,['min_level']=40,['desc']="+1% vit. magique",['mult']=1,['tag']="% Vit. Magique"},
{['type']=apply.ATTBONUS_HUMAN,['name']="Silny przeciwko Ludziom",['max_points']=10,['min_level']=60,['desc']="+1% DH",['mult']=1,['tag']="% DH"}
},
['ExpTable'] = {300,600,900,1200,1500,1800,2100,2400,2700,3000, -- Liv 1-10
3300,3600,3900,4200,4500,4800,5100,5400,5700,6000, -- Liv 11-20
6300,6600,6900,7200,7500,7800,8100,8400,8700,9000, -- Liv 21-30
9300,9600,9900,10200,10500,10800,11100,11400,11700,12000, -- Liv 31-40
12300,12600,12900,13200,13500,13800,14100,14400,14700,15000, -- Liv 41-50
15300,15600,15900,16200,16500,16800,17100,17400,17700,18000, -- Liv 51-60
18300,18600,18900,19200,19500,19800,20100,20400,20700,21000, -- Liv 61-70
21300,21600,21900,22200,22500,22800,23100,23400,23700,24000, -- Liv 71-80
24300,24600,24900,25200,25500,25800,26100,26400,26700,27000, -- Liv 81-90
27300,27600,27900,28200,28500,28800,29100,29400,29700,30000, -- Liv 91-100
30300,30600,30900,31200,31500,31800,32100,32400,32700,0 -- Liv 101-110
}
}


--**
--** Menu Pet
--**
function PetSystem.ShowMenu(PetIndex)
if horse.is_mine() then
local pet_menu
if pc.getqf("exp_blocked") == 0 then
pet_menu = {"Informacje","Umiejetnosci'","Blokada Doswiadczenia","Status'","Odwołaj","Zamknij (Fermer fenętre)"}
else
pet_menu = {"Informacje","Umiejetnosci'","Blokada Doswiadczenia","Status'","Odwołaj","Zamknij (Fermer fenętre)"}
end
say_title("Familier: "..PetSystem[PetIndex].Name)
local skill_points, liv, ex = PetSystem.ReadStatus(PetIndex)
say_light_yellow("Level: "..liv.." / "..PetSystem[PetIndex].MaxLevel.." - Punkty doswiadczenia: "..skill_points.."")
if not PetSystem.IsExpBlocked() then
say_light_yellow("Doświadczenie: "..ex.." / "..PetSystem[PetIndex].ExpTable[liv].." (Odblokowane)")
else
say_light_yellow("Doświadczenie: "..ex.." / "..PetSystem[PetIndex].ExpTable[liv].." (Zablokowane)")
end
say("Wybierz operacje:")
say_size(350, 330)
local s = select_table(pet_menu)
----------********** Informations ***********----------
if s == 1 then
say_title("Informacja")
say("Familja małych zwierząt, która towarzyszy")
say("postaci podczas jego przygody. Jego")
say("podobne zachowanie i że koń,")
say(".")
say("Une fois appelé, il a une autre fonction que")
say("d'accompagné le personnage. Il dispose d'un systéme")
say("de compétences que vous trouverez dans")
say("le menu 'Gestion Habilité'. Comme vous l'animal")
say("évolue, il prends de l'expériences avec vous et")
say("monte des niveaux pour gagner des points de compétence.[ENTER]")
wait()
say_title("Informacja")
say("Chaque compétence donnera un bonus, qui")
say("augmentera ŕ chaque point assigner.")
say("Le nombre maximum de points attribués varie")
say("d'une compétence ŕ l'autre. Vous pouvez attribuer")
say("et supprimer des points comme vous le souhaiterez.[ENTER]")
----------********** Gestion Habilité ***********----------
elseif s == 2 then
say_title("Tutaj mozesz dodac pkt umiejętności swojemu petowi: "..PetSystem[PetIndex].Name.."")
say_orange("Twoje pkt. umiejętności: "..skill_points.."")
say("[ENTER]Co chcesz zrobić:[ENTER]")
local a = select("Dodaj umiejętność'","Odejmij umiejętność'","Anuluj")
if a == 3 then
return
----------********** Augmenter Habilité' ***********----------
elseif a == 1 then
say_title("Dodawanie umiejętności'")
if skill_points == 0 then
say("Aktualnie nie masz żadnych pkt do dodania.[ENTER]")
return
end
local skill_value = {}
local menu_abi = {}
skill_value = PetSystem.LoadSkill(PetIndex)
for i = 1, table.getn(PetSystem[PetIndex].Skill) do
if liv >= PetSystem[PetIndex].Skill[i].min_level then
table.insert(menu_abi, PetSystem[PetIndex].Skill[i].name..": "..skill_value[i].." pkt")
end
end
table.insert(menu_abi, "Anuluj")
if table.getn(menu_abi) == 1 then
say("Nie jest możliwe, aby zwiększyć.[ENTER]")
return
end
say("Wybierz w co chcesz dodac pkt. umiejętności:")
say_size(350, PetSystem[PetIndex].WindowSize)
local s = select_table(menu_abi)
if s == table.getn(menu_abi) then
return
end
say_title(PetSystem[PetIndex].Skill[s].name)
say_orange("Aktualnie dodanych pkt: "..skill_value[s].." [ENTER]")
if skill_value[s] == PetSystem[PetIndex].Skill[s].max_points then
say("Pet osiągnął maksymalny poziom.[ENTER]")
return
end
say_light_blue("Jednek pkt. dodaje: "..PetSystem[PetIndex].Skill[s].desc.."")
say_light_blue("Maksymalna liczba pkt: "..PetSystem[PetIndex].Skill[s].max_points.."[ENTER]")
local a = select("Dalej", "Anuluj")
if a == 2 then
return
end
say_title(PetSystem[PetIndex].Skill[s].name)
say("Ile pkt. chcesz dodać? wpisz liczbę![ENTER]")
local points = tonumber(input())
say_title(PetSystem[PetIndex].Skill[s].name)
if points == nil or points < 1 then
say("Wprowadziłeś nieprawidłową wartość.[ENTER]")
return
elseif points > skill_points then
say("Nie posiadasz tak dużej ilości pkt.[ENTER]")
return
elseif (skill_value[s]+points) > PetSystem[PetIndex].Skill[s].max_points then
say("Wzrost umiejętności "..points.." point(s),")
say("Przekroczenia maksymalnej wartości. Ecrivez")
say("une valeur plus petite.[ENTER]")
return
end
skill_value[s] = skill_value[s]+points
PetSystem.ChangeSkillPoints(PetIndex, -points)
PetSystem.SaveSkill(PetIndex, skill_value)
PetSystem.AddBonus(PetIndex)
say("Pkt. umiejętności zostały pomyślnie dodane.[ENTER]")
----------********** Diminuer Habilité' ***********----------
elseif a == 2 then
say_title("Odejmowanie umiejętności'")
local skill_value = {}
local menu_abi = {}
skill_value = PetSystem.LoadSkill(PetIndex)
for i = 1, table.getn(PetSystem[PetIndex].Skill) do
if liv >= PetSystem[PetIndex].Skill[i].min_level then
table.insert(menu_abi, PetSystem[PetIndex].Skill[i].name..": "..skill_value[i].." points")
end
end
table.insert(menu_abi, "Anuluj")
if table.getn(menu_abi) == 1 then
say("Umiejętnaść nie została odjęta.[ENTER]")
return
end
say("Wybierz od którego skila chcesz odjąć umiejętności:")
say_size(350, PetSystem[PetIndex].WindowSize)
local s = select_table(menu_abi)
if s == table.getn(menu_abi) then
return
end
say_title(PetSystem[PetIndex].Skill[s].name)
say_orange("Pkt. dodane w tą umiejętność: "..skill_value[s].."")
if skill_value[s] == 0 then
say("Aktualnie nie masz żadnych pkt. dodanych w tą umiejętność.[ENTER]")
return
end
say("Que faites vous?[ENTER]")
local b = select("Odejmij 1 pkt","Odejmij wszystkie","Anuluj")
if b == 3 then
return
elseif b == 1 then
say_title(PetSystem[PetIndex].Skill[s].name)
say("Czy napewno chcesz odjąć 1 pkt")
say("od tej umiejętności?[ENTER]")
local c = select("Tak","Nie")
if c == 2 then
return
end
PetSystem.ChangeSkillPoints(PetIndex, 1)
skill_value[s] = skill_value[s]-1
PetSystem.SaveSkill(PetIndex, skill_value)
PetSystem.AddBonus(PetIndex)
say_title(PetSystem[PetIndex].Skill[s].name)
say("Pkt. zostały odjęte pomyślnie.[ENTER]")
elseif b == 2 then
say_title(PetSystem[PetIndex].Skill[s].name)
say("Czy napewno chcesz odjącz wszystkie pkt od tej umiejętności?[ENTER]")
local c = select("Tak","Nie")
if c == 2 then
return
end
PetSystem.ChangeSkillPoints(PetIndex, skill_value[s])
skill_value[s] = 0
PetSystem.SaveSkill(PetIndex, skill_value)
PetSystem.AddBonus(PetIndex)
say_title(PetSystem[PetIndex].Skill[s].name)
say("Wszystkie pkt. zostały odjętnie pomyślnie od tej umiejętności.[ENTER]")
end
end
----------********** Bloquer/Débloquer Expérience ***********--------
elseif s == 3 then
if not PetSystem.IsExpBlocked() then
say_title("Blokada doświadczenia")
say("Dzięku blokadanie doświadczenia twój pet nie będzie dostawał ")
say("doswiadczenia a ty nie będziesz go tracic.[ENTER]")
local a = select("Blokuj","Anuluj")
if a == 2 then
return
end
say_title("Blokada Doświadczenia")
say("Doświadczenie zostało zablokowane.[ENTER]")
PetSystem.BlockExp()
else
say_title("Odblokuj doświadczenie")
say("Czy napewno chcesz odblokowac doświadczenie dla peta?[ENTER]")
local a = select("Tak","Nie")
if a == 2 then
return
end
say_title("Odblokuj doświadczenie")
say("Doświadczenie dla twojego peta zostało odblokowane.[ENTER]")
PetSystem.UnblockExp()
pc.setqf("current_exp", pc.get_exp())
end
----------********** Statut Habilité' Pet ***********----------
elseif s == 4 then
local skill_value = {}
skill_value = PetSystem.LoadSkill(PetIndex)
say_title("Stan gotowy' - Pet "..PetSystem[PetIndex].Name.."")
say_light_blue("Zdrowie: "..horse.get_health_pct().."%")
say("")
for i = 1, table.getn(PetSystem[PetIndex].Skill) do
if liv >= PetSystem[PetIndex].Skill[i].min_level then
local total = skill_value[i]*PetSystem[PetIndex].Skill[i].mult
say_light_yellow(PetSystem[PetIndex].Skill[i].name..": level "..skill_value[i]..". Bonus: "..total..PetSystem[PetIndex].Skill[i].tag)
end
end
say("")
----------********** Le renvoyer Pet ***********----------
elseif s == 5 then
PetSystem.PetBack()
elseif s == 6 then
return
end
end
end

--**
--** Le renvoyer le pet
--**
function PetSystem.PetBack()
cleartimer("give_exp")
pet.unsummon()
PetSystem.RemoveBonus()
PetSystem.SetInactive()
chat("Zwerzak zostal odesłany.")
end

--**
--** Carica le abilita' del pet specificato
--**
function PetSystem.LoadSkill(PetIndex)
local FileName = PetSystem.Folder..pc.get_name().."_"..PetSystem[PetIndex].Name.."_skills"
local PetSkill = {}
if io.open(FileName, "r") == nil then
io.output(FileName)
for i = 1,table.getn(PetSystem[PetIndex].Skill) do
io.write("0\n")
table.insert(PetSkill, 0)
end
io.flush()
io.close()
return PetSkill
end
for line in io.lines(FileName) do
table.insert(PetSkill, tonumber(line))
end
return PetSkill
end

--**
--** Salva le abilita' del pet specificato
--**
function PetSystem.SaveSkill(PetIndex, SkillList)
local FileName = PetSystem.Folder..pc.get_name().."_"..PetSystem[PetIndex].Name.."_skills"
io.output(FileName)
for i,v in ipairs(SkillList) do
io.write(tostring(v).."\n")
end
io.flush()
io.close()
end

--**
--** Legge lo stato del pet specificato
--**
function PetSystem.ReadStatus(petIndex)
local FileName = PetSystem.Folder..pc.get_name().."_"..PetSystem[petIndex].Name.."_stats"
local skill, liv, ex
if io.open(FileName, "r") != nil then
io.input(FileName)
skill = tonumber(io.read())
liv = tonumber(io.read())
ex = tonumber(io.read())
io.input():close()
else
io.output(FileName)
io.write("0\n1\n0\n")
io.flush()
io.close()
skill = 0
liv = 1
ex = 0
end
return skill, liv, ex
end

--**
--** Legge il livello del pet specificato
--**
function PetSystem.GetLevel(petIndex)
local FileName = PetSystem.Folder..pc.get_name().."_"..PetSystem[petIndex].Name.."_stats"
local liv
if io.open(FileName, "r") != nil then
io.input(FileName)
io.read()
liv = tonumber(io.read())
io.input():close()
else
liv = 1
end
return liv
end

--**
--** Modifica i punti abilitŕ del pet specificato
--**
function PetSystem.ChangeSkillPoints(PetIndex, amount)
local FileName = PetSystem.Folder..pc.get_name().."_"..PetSystem[PetIndex].Name.."_stats"
local skill, liv, ex
if io.open(FileName, "r") != nil then
io.input(FileName)
skill = tonumber(io.read())
liv = tonumber(io.read())
ex = tonumber(io.read())
skill = skill+amount
io.input():close()
else
skill = amount
end
io.output(FileName)
io.write(tostring(skill).."\n")
io.write(tostring(liv).."\n")
io.write(tostring(ex).."\n")
io.flush()
io.close()
end

--**
--** Dŕ Expérience al pet specificato
--**
function PetSystem.GiveExp(petIndex, amount)
local FileName = PetSystem.Folder..pc.get_name().."_"..PetSystem[petIndex].Name.."_stats"
local skill, liv, ex
if io.open(FileName, "r") != nil then
io.input(FileName)
skill = tonumber(io.read())
liv = tonumber(io.read())
ex = tonumber(io.read())
ex = ex+amount
io.input():close()
else
skill = 0
liv = 1
ex = amount
end
if liv == PetSystem[petIndex].MaxLevel then
return false
end
if ex > PetSystem[petIndex].ExpTable[liv] then
ex = ex-PetSystem[petIndex].ExpTable[liv]
skill = skill+1
liv = liv+1
if liv == PetSystem[petIndex].MaxLevel then
ex = 0
chat("Twój Pet osiągnoł Maksymalny poziom!")
else
chat("Twój pet awansował na poziom "..liv.."!")
end
chat("Mozesz dodać 1 pkt umiejentności swojemu petowi")
if PetSystem.NewSkillLearnt(petIndex, liv) then
send_letter("Nowa umiejętność została odblokowana!")
end
end
io.output(FileName)
io.write(tostring(skill).."\n")
io.write(tostring(liv).."\n")
io.write(tostring(ex).."\n")
io.flush()
io.close()
return true
end

--**
--** Aggiunge i bonus del Pet specificato in base ai Point Habilité assegnati
--**
function PetSystem.AddBonus(PetIndex)
PetSystem.RemoveBonus()
local SkillList = {}
SkillList = PetSystem.LoadSkill(PetIndex)
for i = 1,table.getn(SkillList) do
affect.add_hair(PetSystem[PetIndex].Skill[i].type, SkillList[i]*PetSystem[PetIndex].Skill[i].mult, 60*60*24*365)
end
end

--**
--** Rimuove i bonus del Pet
--**
function PetSystem.RemoveBonus()
affect.remove(520)
end

--**
--** Imposta nome e livello al cavallo
--**
function PetSystem.SetHorseData(level, name)
horse.set_name(name)
horse.set_level(level)
end

--**
--** Controlla se il livello del cavallo e' associato a un pet
--**
function PetSystem.IsPetLevel(level)
for i = 1,PetSystem.GetPetNumber() do
if level == PetSystem[i].Level then
return true
end
end
return false
end

--**
--** Controlla se il pet ha imparato una nuova abilitŕ
--**
function PetSystem.NewSkillLearnt(PetIndex, PetLevel)
for i = 1,table.getn(PetSystem[PetIndex].Skill) do
if PetLevel == PetSystem[PetIndex].Skill[i].min_level then
return true
end
end
return false
end

--**
--** Ritorna il numero totale di pet definiti
--**
function PetSystem.GetPetNumber()
return table.getn(PetSystem)
end

--** Imposta il pet attivo
function PetSystem.SetActivePet(petIndex)
pc.setqf(PetSystem.Flag, petIndex)
end

--** Ritorna se il pet system č attivo
function PetSystem.IsActive()
return (pc.getqf(PetSystem.Flag) > 0)
end

--** Disattiva il pet system
function PetSystem.SetInactive()
pc.setqf(PetSystem.Flag, 0)
end

--** Ritorna il numero del pet attivo
function PetSystem.GetActivePet()
return pc.getqf(PetSystem.Flag)
end

--** Blocca l'Expérience al pet
function PetSystem.BlockExp()
pc.setqf(PetSystem.ExpFlag, 1)
end

--** Sblocca l'Expérience al pet
function PetSystem.UnblockExp()
pc.setqf(PetSystem.ExpFlag, 0)
end

--** Ritorna se l'Expérience del pet č bloccata
function PetSystem.IsExpBlocked()
return (pc.getqf(PetSystem.ExpFlag) == 1)
end

--**
--** Stampa a colori
--**

function say_light_yellow(str)
say(color256(255,255,128)..str..color256(196, 196, 196))
end

function say_yellow(str)
say(colo

 

 

b_350_20_692108_381007_FFFFFF_000000.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...