yogiikke
:D
- Joined
- Mar 24, 2013
- Messages
- 59
- Reaction score
- 9
Can some make a script like this one (this one makes the mob that is called Appocalypse,Annihilion, etc drop a teleport on kill that leads to .....)
This script is from my data in creaturescripts it was in here already when i downloaded the datapack so i didnt make it so i wont take any credits for it at all its just an example.
but instead a teleport can you rotate the mob cause i cant do that with remere's and its annoying the hell out of me that the mobs i like to see are faced to the wall like they are ignoring me
but make it with the names in it pls cause i want diffrent mobs to change diffrent ways if you can do it it would be awesome i hope that someone can help me out here 
This script is from my data in creaturescripts it was in here already when i downloaded the datapack so i didnt make it so i wont take any credits for it at all its just an example.
Code:
local config = {
message = "Please Take your stuff fast Teleport dissapears in 60 seconds.",
timeToRemove = 60, -- seconds
teleportId = 1387,
bosses = {
["Ushuriel"] = { x = 1145, y = 980, z = 7 },
["Annihilion"] = { x = 2102, y = 1671, z = 5 },
["Hellgorak"] = { x = 1568, y = 783, z = 9 },
["Madareth"] = { x = 1352, y = 741, z = 9 },
["Zugurosh"] = { x = 1191, y = 753, z = 11 },
["Demon Oak Bossy"] = { x = 709, y = 831, z = 8 },
["Necropharus"] = { x = 646, y = 809, z = 9 },
["Minishabaal"] = { x = 667, y = 733, z = 7 },
["Foreman Kneebiter"] = { x = 435, y = 244, z = 5 },
["Rook Chaos"] = { x = 722, y = 1080, z = 8 },
["Latrivan"] = { x = 1483, y = 824, z = 9 }
}
}
local function removal(position)
position.stackpos = 1
if getThingfromPos(position).itemid == config.teleportId then
doRemoveItem(getThingfromPos(position).uid)
end
return TRUE
end
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "inquisitionPortals")
local position = getCreaturePosition(cid)
for name, pos in pairs(config.bosses) do
if name == getCreatureName(cid) then
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)
doSendMagicEffect(position,65)
end
end
return TRUE
end
Last edited:

