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

setPlayerStorageValue

tibiamo

New Member
Joined
May 30, 2009
Messages
50
Reaction score
1
Well I People Wanting To Put a script in the inquisition quest, when you clik the magic wall, is a warped and wins (setPlayerStorageValue), so I can go in the room put the items of the inquisition is to get the item.

someone help me?

Hugs KoJiiRo​
 
Code:
function onUse(cid, item, frompos, item2, topos)
local pos = { x = 1027, y = 1012, z = 12 }  

	doTeleportThing(cid, pos)
	setPlayerStorageValue(cid, 5000)
        doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
 
In actions.xml
Code:
<action actionid="2000" event="script" value="quests/mw.lua"/>

actions/quests/mw.lua

Code:
function onUse(cid, item, frompos, item2, topos)
local pos = { x = 1027, y = 1012, z = 12 }  

	doTeleportThing(cid, pos)
	setPlayerStorageValue(cid, 5000)
        doSendMagicEffect(pos, CONST_ME_TELEPORT)
        doPlayerSendTextMessage(cid,25,"You are teleported.") 
end

Give the mw actionid 2000 in your map editor
 
Code:
function onStepIn(cid, item, position, fromPosition)
local pos = { x = 1027, y = 1012, z = 12 }  

	doTeleportThing(cid, pos)
	setPlayerStorageValue(cid, 5000)
        doSendMagicEffect(pos, CONST_ME_TELEPORT)
        doPlayerSendTextMessage(cid,25,"You are teleported.") 
end
 
Back
Top