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

Help LUA SCRIPT

kira178

Member
Joined
Jun 24, 2008
Messages
290
Reaction score
5
Hello, any1 know which function like this.

When click in 1 item have UID = xxx and transform it to 0 and make to teleport to boss, after kill that boss, is it possible recreat that item with UID?

Thank
 
umm maybe i will change to aid, just want remove item after go into teleport and kill boss, if boss die will creat a item with same uid.
 
thanks Cykotitan, i will try ur way:), also can u help me correct my file
Code:
local t = {
	teleportTo = {x=342,y=839,z=15},
	monsterName = 'Monster'
}

function onKill(cid, target, flags)
	if getCreatureName(target):lower() == t.monsterName:lower() then
		doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
		doTeleportThing(cid, t.teleportTo)
		doSendMagicEffect(t.teleportTo, CONST_ME_TELEPORT)
		doRemoveItem(getTileItemById({x=314, y=812, z=15}, 9773).uid)
		--doCreateItem(1304,1,{x=314, y=812, z=15})
		doItemSetAttribute((doCreateItem(1304,1,{x=314, y=812, z=15})).uid, "uid", 61001)
		end
	return true
end
 
Last edited:
Back
Top