Tipologie server(PvM / PvP):Pvm
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat:By Chriss(atat stiu)
*Syserr:-
Poză:-
*Detalii suplimentare:-



Cod: Selectaţi tot
quest PetSystemIncubator begin
state start begin
when 55401.use or 55402.use or 55403.use or 55404.use or 55405.use or 55406.use begin
newpet.EggRequest(item.get_vnum())
cmdchat(string.format("OpenPetIncubator %d ", (item.get_vnum()-55401)))
end
end
end
Cod: Selectaţi tot
quest PetSystems begin
state start begin
function get_pet_info(itemVnum)
pet_info_map = {
-- [ITEM VNUM] MOB_VNUM, DEFAULT NAME, buff_idx, spawn_effect_idx
[55701] = { 34041, "'s Maimuta Tanara", 0},
[55702] = { 34045, "'s Paianjen Tanar", 0},
[55703] = { 34049, "'s Razador Tanar", 0},
[55704] = { 34053, "'s Nemere Tanar", 0},
[55705] = { 34057, "'s Nemere Tanar", 0},
[55706] = { 34061, "'s Meley Tanar", 0},
}
itemVnum = tonumber(itemVnum)
return pet_info_map[itemVnum]
end
when 55701.use or 55702.use or 55703.use or 55704.use or 55705.use or 55706.use begin
local pet_info = PetSystems.get_pet_info(item.vnum)
if null != pet_info then
local mobVnum = pet_info[1]
local petName = pet_info[2]
if true == newpet.is_summon(mobVnum) then
newpet.unsummon(mobVnum)
else
if newpet.count_summoned() < 1 then
newpet.summon(mobVnum, petName, false)
else
syschat("Ai chemat un insotitor deja!")
end
end -- if pet.is_summon
end -- if null != pet_info
end -- when
end
endUtilizatori ce ce navighează pe acest forum: Bing [Bot], Google [Bot] și 160 vizitatori