• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Potrzebny skrypt.

[Error - CreatureScript Interface]
data/creaturescripts/scripts/dedpythius.lua:onDeath
 
Last edited:
Co zrobiłes ze skryptem? I co dodałeś do login.lua i cret...pts.xml
 
Code:
function onDeath(cid, corpse, killer)
local zabojca = 'Pythius The Rotten'

if getCreatureName(killer) == zabojca and isMonster(killer) then
doRemoveCreature(killer)
end
return TRUE
end

login.lua:
Code:
   registerCreatureEvent(cid, "dedpythius")
Creature...xml
Code:
<event type="death" name="dedpythius" event="script" value="dedpythius.lua"/>
 
PHP:
<event type="ondeath" name="dedpythius" event="script" value="dedpythius.lua"/>

Event type to onDeath nie death ;p
 
@2xup
Nie prawda.
Na przykladzie Azreusa:
Code:
    <event type="death" name="Azerus" event="script" value="azerus.lua"/>
@up jaki silnik?
 
@2xup
Nie prawda.
Na przykladzie Azreusa:
Code:
    <event type="death" name="Azerus" event="script" value="azerus.lua"/>
@up jaki silnik?

Lol2 przerobiłem twój skrypt, nawet nie wiedziałem ze od Azerus'a :ninja:

PHP:
function onDeath(cid, corpse, killer)
local zabojca = 'Pythius The Rotten'

if getCreatureName(killer) == zabojca then
doRemoveCreature(killer)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "First.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Second.")
end
return TRUE
end

Powiedz czy first czy second ci sie wyswietla jak zabijesz.
 
On nie byl od azerusa tylko moj!
A chodzilo mi o to ze nie ondeath tylko death ma byc w cresturescript.xml
 
Lol2 przerobiłem twój skrypt, nawet nie wiedziałem ze od Azerus'a :ninja:

PHP:
function onDeath(cid, corpse, killer)
local zabojca = 'Pythius The Rotten'

if getCreatureName(killer) == zabojca then
doRemoveCreature(killer)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "First.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Second.")
end
return TRUE
end

Powiedz czy first czy second ci sie wyswietla jak zabijesz.


[Error - CreatureScript Interface]
data/creaturescripts/scripts/dedpythius.lua:onDeath
Description:
(luaGetCreatureName) Creature not found


wyswietla sie tylko znany napis You Are Dead.
 
sprawdz nazwe potwora ;p

PHP:
function onDeath(cid, corpse, killer)

if getCreatureName(killer) == 'Pythius The Rotten' then
doRemoveCreature(killer)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "First.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Second.")
end
return TRUE
end
 
sprawdz nazwe potwora ;p

PHP:
function onDeath(cid, corpse, killer)

if getCreatureName(killer) == 'Pythius The Rotten' then
doRemoveCreature(killer)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "First.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Second.")
end
return TRUE
end


Code:
[Error - CreatureScript Interface]
data/creaturescripts/scripts/dedpythius.lua:onDeath
Description:
(luaGetCreatureName) Creature not found
 
Creature not found
if getCreatureName(killer) == "Pythius The Rotten" then -- zamien na ten ;p
 
to samo

nie wiadomo czemu nie dziala;/

Code:
function onDeath(cid, corpse, deathList)
	if getCreatureName(cid):lower() == "pythius the rotten" then
		for i = 1, #deathList do
			local killer = deathList[i]
			if isPlayer(killer) then
				doCreatureSay(killer, "NICE FIGHTING LITTLE WORM, YOUR VICTORY SHALL BE REWARDED!", TALKTYPE_ORANGE_1, false, nil, {x=32572, y=31403, z=15})
				doSendMagicEffect(getCreaturePosition(killer), CONST_ME_TELEPORT)
				doTeleportThing(killer, {x=32577, y=31403, z=15})
				doSendMagicEffect({x=32577, y=31403, z=15}, CONST_ME_TELEPORT)
				break
			end
		end
	end
	return true
end

Jak myslicie to bedzie dzialalo?
 
Last edited by a moderator:
Back
Top