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

Solved When creature die and transform into another creature [HELP]

Gr4ph1toN

Mapper/Hoster/C++
Joined
Jan 7, 2009
Messages
67
Reaction score
4
Location
Sweden
I've got a problem with my script to work "properly" as how I want it to work..

So here's my dilemma, when more than 1 player (with or without party) goes to kill the Banshee Slave, the number of players that is attacking it, the number of Banshee Queens spawns, and I only want 1 Banshee Queen to spawn.

Distro: 0.3.7 (CD)

I've tried changing event"kill" to event"death" and also changing the script to "onDeath" but then the next monster doesn't even appear... I've also added this to banshee slave.xml..
Code:
 	<script>
		<event name="t"/>
	</script>
Yes I've added the event to login.lua as well, but nothing seems to work.


Code:
Code:
local monster = "Banshee Slave"
local summon = "Banshee Queen"
function onKill(cid, target)
if isPlayer(target) then
return true
end
if isPlayer(cid) and getCreatureName(target) == monster then
local t = getThingPos(target)
doCreatureSay(target, "I'm not finished with you yet!", TALKTYPE_ORANGE_1)
doSummonCreature(summon, t)
doSendMagicEffect(t,49)
end
return true
end

Code:
Code:
 <event type="kill" name="t" event="script" value="banshee/bq.lua"/>

HowToFixDiz? t_t

REP++
 
Last edited:
Lua:
local monster = "Banshee Slave"
local summon = "Banshee Queen"
function onKill(cid, target)
    if isPlayer(target) then
        return true
    end
    if isPlayer(cid) and getCreatureName(target) == monster and not(getCreatureByName(summon)) then
        local t = getThingPos(target)
        doCreatureSay(target, "I'm not finished with you yet!", TALKTYPE_ORANGE_1)
        doSummonCreature(summon, t)
        doSendMagicEffect(t,49)
    end
    return true
end
 
Lua:
local monster = "Banshee Slave"
local summon = "Banshee Queen"
function onKill(cid, target)
    if isPlayer(target) then
        return true
    end
    if isPlayer(cid) and getCreatureName(target) == monster and not(getCreatureByName(summon)) then
        local t = getThingPos(target)
        doCreatureSay(target, "I'm not finished with you yet!", TALKTYPE_ORANGE_1)
        doSummonCreature(summon, t)
        doSendMagicEffect(t,49)
    end
    return true
end

Awesome! Cheers mate!
 
i need this script to i dit the same thing but on my server there nothing happens i dit everything like you registe at login ad file on creaturs an script on the monster and noting happend im using the TFS 2.15

- - - Updated - - -

i need this script to i dit the same thing but on my server there nothing happens i dit everything like you registe at login ad file on creaturs an script on the monster and noting happend im using the TFS 2.15
 
Back
Top