• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Skrypt onDeath - Help

crimm

New Member
Joined
Dec 7, 2008
Messages
44
Reaction score
4
Location
Poland
Witam , mam problem otóż:
Próbowałem zrobić skrypt w creaturescripts.Na to że jak player profesja (Druid) padnie to zamiast jego deda będą Bohy,a jak padnie player o profesji (Sorcerer) to zamiast jego deda będzie Wand of Inferno.Chciałem zrobić na zasadzie:

Code:
function onDeath(cid, corpse, killer)
local corpse = corpse
local id_boh = 99978

if isDruid(cid) then
doTransformItem(corpse, id_boh)

end
end
ale ded znika a bohów nie ma (podałem przykładowe itd.)
Code:
[04/03/2010 16:54:06] [Error - CreatureScript Interface] 
[04/03/2010 16:54:06] data/creaturescripts/scripts/playerdeath.lua:onDeath
[04/03/2010 16:54:06] Description: 
[04/03/2010 16:54:06] (luaDoTransformItem) Item not found
[04/03/2010 16:54:06] Druid Sample has logged out.

Co zrobiłem źle?:<
 
Last edited:
Item not found.
Nie może pobrać corpse.
Nie mam pojęcia jak to zrobić ;)
 
Code:
doRemoveItem(corpse.uid)
doCreateItem(2195, 1, getCreaturePosition(cid))
 
A mnie ciekawi jeszcze czy można podmienić ciało, zeby zamiastciala pokazalo sie inne ciało np. dead orc, ale w srodku itemki maja byc te co spadly podczas deda. Wystarczy transform? Czy trzeba jakies getContainerItems, addContainerItems?
 
@Up
Gdzie? xdd
w outfits.xml?
Pod TFS 8.54
nie ma już chyba takich bajerów
Code:
	<outfit id="1">
		<list gender="0" lookType="136" name="Citizen"/>
		<list gender="1" lookType="128" name="Citizen"/>
	</outfit>
 
kurwa ja to do renuska pisałem i źle zrozumiałem trochę bo nie przeczytałem całego tematu, sorry
 
Back
Top