Nowy potwor (spr i dat)

Status
Zamknięty.

Hemick

Active User
Zarejestrowany
Dołączył
Maj 11, 2008
Posty
132
Liczba reakcji
2
Witam ostatnio zrobilem na swoim ots nowego potwora z nowym wygladem dodalem do tibia.spr oraz tibia.dat wyglad tego potwora, pisze mi ze ma looktype 352 i gdy robie potwora z takim looktype to mi wywala debuga wie ktos moze oco chodzi :/
 
Odp: Nowy potwor (spr i dat)

Ot?? Musisz zobaczy? czy dobrze poskleja?e? w Tibi.dat go.

Tzn. Musisz mie? w Animactions - 3 I takie tam. Nie mam przed sob? Edytora, wi?c Ci dok?adnie nie mog? pom?c. Ale zmie? 'corpsize' np. na 62 i zobacz czy masz Debugi. ; )

P.S Je?eli nadal b?dziesz mia? zr?b ss editora dat, tam gdzie skleja?e? tego new moba oraz poka? te tabelki z Animations itp. itd. to Ci pomog? ; ).

Pozdrawiam Inferno~~
 
Odp: Nowy potwor (spr i dat)

Je?eli doda?e? do tibia.spr tego new potwora, a nie edytowa?e? jakiego? co ju? tam by?, to musisz jeszcze doda? tego new potwora do items.otb w silniku.
 
Odp: Nowy potwor (spr i dat)

aa tylko jak dodac tego nowego potwora bo itemki to wiem ;p
 
Odp: Nowy potwor (spr i dat)

Wi?c tak:
1. Dodajesz sprity potwora do Tibia.spr
2. Zapisujesz Tibia.spr z nowymi spritami
3. Dodajesz go do Tibia.dat (jako creature/outfit)
4. Zapisujesz Tibia.dat
5. Wklejasz Tibia.dat i Tibia.spr do folderu z Tibi?
6. Wchodzisz do folderu Servera/data/talkactions/scripts/newtype.lua
Kod:
function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
		return true
	end

	local t = string.explode(param, ",")
	t[1] = tonumber(t[1])
	if(not t[1]) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
		return true
	end

	local pid = cid
	if(t[2]) then
		pid = getPlayerByNameWildcard(t[2])
		if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
			return true
		end
	end

	if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")
		return true
	end

	local tmp = getCreatureOutfit(pid)
	tmp.lookType = t[1]

	doCreatureChangeOutfit(pid, tmp)
	return true
end
if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then

351 - to jest ostatni outfit czyli jeszcze przed towim dodaniem. Dodaj?c nowy looktype musisz ustawi? jaki ostatni outfit ma cyfre. W twoim przypadku po dodadniu 1 looktype b?dzie to 352.

Pozdrawiam xKrysteKx!
 
Odp: Nowy potwor (spr i dat)

Wi?c tak:
1. Dodajesz sprity potwora do Tibia.spr
2. Zapisujesz Tibia.spr z nowymi spritami
3. Dodajesz go do Tibia.dat (jako creature/outfit)
4. Zapisujesz Tibia.dat
5. Wklejasz Tibia.dat i Tibia.spr do folderu z Tibi?
6. Wchodzisz do folderu Servera/data/talkactions/scripts/newtype.lua
Kod:
function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
		return true
	end
	local t = string.explode(param, ",")
	t[1] = tonumber(t[1])
	if(not t[1]) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
		return true
	end
	local pid = cid
	if(t[2]) then
		pid = getPlayerByNameWildcard(t[2])
		if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
			return true
		end
	end
	if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")
		return true
	end
	local tmp = getCreatureOutfit(pid)
	tmp.lookType = t[1]
	doCreatureChangeOutfit(pid, tmp)
	return true
end
if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then
351 - to jest ostatni outfit czyli jeszcze przed towim dodaniem. Dodaj?c nowy looktype musisz ustawi? jaki ostatni outfit ma cyfre. W twoim przypadku po dodadniu 1 looktype b?dzie to 352.
Pozdrawiam xKrysteKx!
Dzia?a dzieki :D
 
Status
Zamknięty.
Back
Do góry