• 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 me fast plz [Script - Movements]

Pabox Cavieres

Dovux Online owner
Joined
May 12, 2008
Messages
571
Reaction score
9
Location
Caracas/Venezuela
I need help with making a scrip. what i want to do with this scrip is whenever a selected creature (by me) die.. his body or his death remove the item i want to <a stone trapping the way> (as example arena quest).. so anyone able to help me out with this please

I have a image for example:

15d18o3.jpg
 
don't know if you still need it but you can make the corpse id of the monster start an action like

Code:
 function onUse(cid, item, frompos, item2, topos)
wall1 = {x=XXXX, y=XXXX, z=XXXX, stackpos=1} <-- the wall position 
getwall1 = getThingfromPos(wall1)

if item.itemid == XXXX then <-- corpse id
doRemoveItem(item.uid)
doRemoveItem(getwall1.uid,1)
return TRUE
		else
			doCreatureSay(cid, "You can't use this ", TALKTYPE_ORANGE_1)
		end
end
 
In Creaturescripts put this
PHP:
	<event name="mob_death" type="death" script="mob_death.lua"/>


then in the creaturescripts scripts make this

mob_death.lua
PHP:
function onDeath(cid, pos)
	stonepos = {x=511, y=1222, z=11, stackpos=1} -- Change the position of the stone
	stone = getThingfromPos(stonepos).uid
		doRemoveItem(stone)
	return TRUE
end

In the monster that activates the stone remove when dying
Put this after </loot> and before </monster>
PHP:
<script>
<event name="mob_death"/>
</script>

:)
 
But it work on restart server:)
He needed 2 script: mod_death.lua and when he onStep(teleport or tile behind stone) stone is added on map.
Sorry for english but I'm learn english.
Code:
function onStepIn(cid, item, frompos, item2, topos) 
stonepos = {x=xxx, y=yyy, z=z} 
stone = getThingfromPos(stonepos)
if item.uid == 9116 the
doCreateItem(1355,1,stone)
end 
end
1335 = stone id
Add this script to movements
Code:
<movevent event="StepIn" uniqueid="9116" script="add_stone.lua" />
And add unique id to tile behind stone 9116.
 
Last edited:
I need help with making a scrip. what i want to do with this scrip is whenever a selected creature (by me) die.. his body or his death remove the item i want to <a stone trapping the way> (as example arena quest).. so anyone able to help me out with this please

I have a image for example:

15d18o3.jpg

I only did what he asked ;D he never asked for it to be re-created if he did, i wouldve added a part to do it.
but yeh your script will do the re-creating averatec
 
I need help with making a scrip. what i want to do with this scrip is whenever a selected creature (by me) die.. his body or his death remove the item i want to <a stone trapping the way> (as example arena quest).. so anyone able to help me out with this please

I have a image for example:

15d18o3.jpg

Hmm... Arena on real tibia working when is restart server?
Maybe one player done this quest and come friends but they musnt kill monsters?
 
Back
Top