problem pet system

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
boss912
Nivel 1

Nivel 1
Mesaje: 69
Membru din: 28 Ian 2016, 16:18
Server: wom2
Regat: Jinno
Aprecieri: 38  
Mulţumiri: 0
Medalii

when click on print pet come on, and channel crashed.. and when start server again and come on server i see print deleted from inventor..
syserr client:
CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 55701
0717 11:44:31885 :: CPythonCharacterManager::CreateInstance VID[27277] Race[55701]
0717 11:45:47214 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 55701
0717 11:45:47214 :: CPythonCharacterManager::CreateInstance VID[27278] Race[55701]
can help fix?
Avatar utilizator
boss912
Nivel 1

Nivel 1
Mesaje: 69
Membru din: 28 Ian 2016, 16:18
Server: wom2
Regat: Jinno
Aprecieri: 38  
Mulţumiri: 0
Medalii

up
Avatar utilizator
boss912
Nivel 1

Nivel 1
Mesaje: 69
Membru din: 28 Ian 2016, 16:18
Server: wom2
Regat: Jinno
Aprecieri: 38  
Mulţumiri: 0
Medalii

me game.core:
0x08100248 in DBManager::DirectQuery (this=0xffffab5c,
c_pszFormat=0x83fe8d8 "UPDATE new_petsystem%s SET level=%d, evolution=%d, exp=%d, expi=%d, bonus0=%d, bonus1=%d, bonus2=%d, skill0=%d, skill0lv= %d, skill1=%d, skill1lv= %d, skill2=%d, skill2lv= %d, duration=%d, tduration=%"...)
at db.cpp:101
#4 0x08264f4f in CNewPetActor::Unsummon (this=0x42317980)
at New_PetSystem.cpp:440
#5 0x08265df8 in CNewPetActor::Update (this=0x42317980, deltaTime=0)
at New_PetSystem.cpp:719
#6 0x08266bdb in CNewPetSystem::Update (this=0x41bb9540, deltaTime=0)
at New_PetSystem.cpp:986
#7 0x08266ca9 in newpetsystem_update_event (event=@0xffffa2ac,
processing_time=6) at New_PetSystem.cpp:41
#8 0x081237e1 in event_process (pulse=1129) at event.cpp:140
#9 0x0826aa6f in heartbeat (ht=0x2911eaf0, pulse=1129) at main.cpp:246
#10 0x0826af9f in idle () at main.cpp:955
#11 0x0826c8ac in main (argc=5, argv=Cannot access memory at address 0x4
) at main.cpp:628
Avatar utilizator
boss912
Nivel 1

Nivel 1
Mesaje: 69
Membru din: 28 Ian 2016, 16:18
Server: wom2
Regat: Jinno
Aprecieri: 38  
Mulţumiri: 0
Medalii

know anybody fix?
Avatar utilizator
ilgryu
Nivel 3

Nivel 3
Mesaje: 452
Membru din: 13 Dec 2013, 16:14
Server: O sa fie si ala.
Regat: Jinno
Aprecieri: 225  
Mulţumiri: 23  
Discord: Copiază ID
 Contact:
Medalii

sure try this

Cod: Selectaţi tot

quest pet_system begin
	state start begin
		function get_pet_info(itemVnum)
			pet_info_map = {
				[53001] = {34001, "Vacuta Mu-Mu ", 0}, 
				[53002] = {34002, "Pui de Dragon", 0}, 
				[53003] = {34003, "Urs Polar", 0}, 
				[53004] = {34004, "Pui de Piesio", 0}, 
				[53005] = {34005, "Motanul Kicia", 0}, 
				[53006] = {34006, "Pui de Caine", 0}, 
				[53007] = {34007, "Pui de Nemere", 0}, 
				[53008] = {34008, "Pui de Razador", 0}, 
				[53009] = {34009, "Pui de Leu", 0}, 
				[53010] = {34010, "Lordul Maimuta", 0}, 
				[53011] = {34011, "Lord King-Kong", 0}, 
				[53012] = {34012, "Elefantel", 0}, 
				[53013] = {34013, "Bao-Bao", 0}, 
				[53014] = {34014, "Phoenix de Fox", 0}, 
				[53015] = {34015, "Phoenix de Gheata", 0}, 
				[53016] = {34016, "Porcusor", 0}, 
				[53017] = {34017, "Pui de Azrael", 0}, 
				[53018] = {34018, "Pui de Paianjen", 0}, 
				[53019] = {34019, "Pui de Tarantula", 0}, 
				[53020] = {34020, "Dragonas", 0}, 
				[53021] = {34021, "Tigru", 0}, 
				[53022] = {34022, "Razador", 0}, 
				[53023] = {34023, "Razador (NA)", 0}, 
				[53024] = {34024, "Super Erou", 0},
				[53025] = {34025, "Lordul Maimuta, 0},
				[53026] = {34026, "Lovisia", 0},
				[53027] = {34027, "Pui Zombie", 0},
			}
			itemVnum = tonumber(itemVnum)
			return pet_info_map[itemVnum]
		end
		when 53001.use or 53002.use or 53003.use or 53004.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use or 53010.use or
			 53011.use or 53012.use or 53013.use or 53014.use or 53015.use or 53016.use or 53017.use or 53018.use or 53019.use or 53020.use or 
			 53021.use or 53022.use or 53023.use or 53024.use or 53025.use or 53026.use or 53027.use or 53028.use or 53029.use begin 
			if false == pc.can_warp() then
				syschat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h Asteptati 10 secunde inainte de a utiliza!")    
				return 
			end
			local pet_info = pet_system.get_pet_info(item.vnum)
			if null != pet_info then
				local mobVnum = pet_info[1]
				local petName = pet_info[2]
				if true == pet.is_summon(mobVnum) then
					chat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h animalutul tau "..petName.."a fost anulat. ")
					--item.set_socket(1, 0)
					pet.unsummon(mobVnum)
				else
					if pet.count_summoned() < 1 or pc.is_gm() then
						chat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h animalutul tau "..petName.." tocmai a aparut. ")
						--item.set_socket(1, -1)
						pet.summon(mobVnum, " ".. petName, false)
					else
						chat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h Nu poti folosi mai multe animalute de companie in acelasi timp. ")
					end
				end
			end
		end
		
	end
end

It`s a quest of pet sistem:D but give here the qest of your pet`s system.
Fusai Aci
Facui Asta
Afișează semnătura
Avatar utilizator
boss912
Nivel 1

Nivel 1
Mesaje: 69
Membru din: 28 Ian 2016, 16:18
Server: wom2
Regat: Jinno
Aprecieri: 38  
Mulţumiri: 0
Medalii

ilgryu scrie:sure try this

Cod: Selectaţi tot

quest pet_system begin
	state start begin
		function get_pet_info(itemVnum)
			pet_info_map = {
				[53001] = {34001, "Vacuta Mu-Mu ", 0}, 
				[53002] = {34002, "Pui de Dragon", 0}, 
				[53003] = {34003, "Urs Polar", 0}, 
				[53004] = {34004, "Pui de Piesio", 0}, 
				[53005] = {34005, "Motanul Kicia", 0}, 
				[53006] = {34006, "Pui de Caine", 0}, 
				[53007] = {34007, "Pui de Nemere", 0}, 
				[53008] = {34008, "Pui de Razador", 0}, 
				[53009] = {34009, "Pui de Leu", 0}, 
				[53010] = {34010, "Lordul Maimuta", 0}, 
				[53011] = {34011, "Lord King-Kong", 0}, 
				[53012] = {34012, "Elefantel", 0}, 
				[53013] = {34013, "Bao-Bao", 0}, 
				[53014] = {34014, "Phoenix de Fox", 0}, 
				[53015] = {34015, "Phoenix de Gheata", 0}, 
				[53016] = {34016, "Porcusor", 0}, 
				[53017] = {34017, "Pui de Azrael", 0}, 
				[53018] = {34018, "Pui de Paianjen", 0}, 
				[53019] = {34019, "Pui de Tarantula", 0}, 
				[53020] = {34020, "Dragonas", 0}, 
				[53021] = {34021, "Tigru", 0}, 
				[53022] = {34022, "Razador", 0}, 
				[53023] = {34023, "Razador (NA)", 0}, 
				[53024] = {34024, "Super Erou", 0},
				[53025] = {34025, "Lordul Maimuta, 0},
				[53026] = {34026, "Lovisia", 0},
				[53027] = {34027, "Pui Zombie", 0},
			}
			itemVnum = tonumber(itemVnum)
			return pet_info_map[itemVnum]
		end
		when 53001.use or 53002.use or 53003.use or 53004.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use or 53010.use or
			 53011.use or 53012.use or 53013.use or 53014.use or 53015.use or 53016.use or 53017.use or 53018.use or 53019.use or 53020.use or 
			 53021.use or 53022.use or 53023.use or 53024.use or 53025.use or 53026.use or 53027.use or 53028.use or 53029.use begin 
			if false == pc.can_warp() then
				syschat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h Asteptati 10 secunde inainte de a utiliza!")    
				return 
			end
			local pet_info = pet_system.get_pet_info(item.vnum)
			if null != pet_info then
				local mobVnum = pet_info[1]
				local petName = pet_info[2]
				if true == pet.is_summon(mobVnum) then
					chat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h animalutul tau "..petName.."a fost anulat. ")
					--item.set_socket(1, 0)
					pet.unsummon(mobVnum)
				else
					if pet.count_summoned() < 1 or pc.is_gm() then
						chat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h animalutul tau "..petName.." tocmai a aparut. ")
						--item.set_socket(1, -1)
						pet.summon(mobVnum, " ".. petName, false)
					else
						chat("|cFF00ff33[PET:Metin2DoBs]|h|cFFFFFFFF|h Nu poti folosi mai multe animalute de companie in acelasi timp. ")
					end
				end
			end
		end
		
	end
end

It`s a quest of pet sistem:D but give here the qest of your pet`s system.
here my new pet system quest:

[Sursa=]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 Kleiner Affe", 0},
[55702] = { 34045, "'s Kleine Spinne", 0},
[55703] = { 34049, "'s Kleiner Razador", 0},
[55704] = { 34053, "'s Kleiner Nemere", 0},

}
itemVnum = tonumber(itemVnum)
return pet_info_map[itemVnum]
end

when 55701.use or 55702.use or 55703.use or 55704.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("You already summoned a pet.")
end
end -- if pet.is_summon
end -- if null != pet_info
end -- when
end
end[/Sursa]

you think problem in quest?
Avatar utilizator
boss912
Nivel 1

Nivel 1
Mesaje: 69
Membru din: 28 Ian 2016, 16:18
Server: wom2
Regat: Jinno
Aprecieri: 38  
Mulţumiri: 0
Medalii

db syserr after crash:
Process: FDWATCH: peer null in event: ident 26
Avatar utilizator
boss912
Nivel 1

Nivel 1
Mesaje: 69
Membru din: 28 Ian 2016, 16:18
Server: wom2
Regat: Jinno
Aprecieri: 38  
Mulţumiri: 0
Medalii

on print have time 7day,when i click on print(pet come) and after 1 sec,time on print stay 0min and print clear from inventor.. and channel crash
Avatar utilizator
Zerant :3
Nivel 4

Nivel 4
Mesaje: 723
Membru din: 17 Oct 2015, 12:53
Server: Velor2
Regat: Jinno
Aprecieri: 15  
Mulţumiri: 141  
Discord: Copiază ID
Medalii

Subiect vechi >> Arhivat
Închis
Răspunsuri
1
Vizualizări
288
Răspunsuri
1
Vizualizări
288
Răspunsuri
1
Vizualizări
365
Răspunsuri
1
Vizualizări
141

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Baidu [Spider] și 54 vizitatori