clario
OTS based on Heroes III Might and Magic
- Joined
- Feb 4, 2018
- Messages
- 98
- Reaction score
- 5
i will show by images and scripts !
First of all i want coffin open by using switch
i add :
then i add
in data\actions\scripts\quests
how its look in game?
Imgur: The magic of the Internet
OT serv application:
Imgur: The magic of the Internet
First of all i want coffin open by using switch
i add :
in the data\actions<action actionid="2222" event="script" value="quests/coffin1.lua"/>
then i add
function onUse(cid, item, frompos, item2, topos)
switch1 = {x=658, y=843, z=7, stackpos=1}
getcoffin1 = getThingfromPos(x=684, y=858, z=7)
if item.uid = 2222 and item.itemid ==>1945 then
doRemoveItem(coffin1.uid,1)
doCreateItem(7524,1,coffin1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid = 2222 and item.itemid ==>1946 then
doRemoveItem(coffin1.uid,1)
doCreateItem(7522,1,coffin1)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
in data\actions\scripts\quests
how its look in game?
Imgur: The magic of the Internet
OT serv application:
Imgur: The magic of the Internet