• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Remove this thread :/

Zerak

http://otstatus.com/
Joined
Oct 4, 2009
Messages
1,126
Reaction score
48
Location
Sweden
buymonster.lua
Code:
local t = {
    monster = {"MONSTER", {x=xxxx, y=yyyy, z=z}},
    msg = "Oh no! something strange has come to kill you!"
}

function onStepIn(cid, item, position, fromPosition)
	if doPlayerRemoveMoney(cid, 10000) then    
	doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
        doSummonCreature(t.monster[1], t.monster[2])
else 
	doPlayerSendCancel(cid, "Sorry but you need to have 10 crystal coins to enter.")
    return TRUE
end
end

movements.xml
Code:
	<movevent type="StepIn" uniqueid="xxxx" event="script" value="buymonster.lua"/>
 
Last edited:
OHH i didn't see..

but. i did this script for someone askt how to fix it. so i fixed it and now i post it here :p
 

Similar threads

Back
Top