• 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!

please remake it

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,398
Reaction score
165
PHP:
function onDeath(cid, corpse, deathList)
	if getCreatureName(cid):lower() == "pythius the rotten" then
		for i = 1, #deathList do
			if isPlayer(deathList[i]) then
				doCreatureSay(deathList[i], "NICE FIGHTING LITTLE WORM, YOUR VICTORY SHALL BE REWARDED!", TALKTYPE_ORANGE_1, nil, nil, {x=32577, y=31402, z=15})
				doSendMagicEffect(getCreaturePosition(deathList[i]), CONST_ME_TELEPORT)
				doTeleportThing(deathList[i], {x=32577, y=31402, z=15})
				doSendMagicEffect({x=32577, y=31402, z=15}, CONST_ME_TELEPORT)
				break
			end
		end
	end
	return true
end

now then player kill pythius he gets teleported, but when 2 player killing it only player with last hit gets teleported.

i want that evryone who had attack this monster will be teleported to that location.
 
Code:
[COLOR=#000000][COLOR=#0000BB][/COLOR][COLOR=#007700]for [/COLOR][COLOR=#0000BB]i [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]2[/COLOR][COLOR=#007700],
[/COLOR][/COLOR]
 
can you rewrite it and show , cuz it dont realy understand what you mean .. sorry poor english
 
Back
Top