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

Lua doSetItemSpecialDescription

djlucas15

New Member
Joined
Feb 18, 2008
Messages
99
Reaction score
0
Location
RS - Brasil
My dcript are this...

function onStepIn(cid, item, frompos, item2, topos)

if item.itemid == 5023 then

playername = getPlayerName(cid)

statuapos = {x=438, y=145, z=6, stackpos=1}
statua = getThingfromPos(statuapos).uid

stonepos22 = {x=436, y=168, z=7, stackpos=1}
stone22 = getThingfromPos(stonepos22).uid
stonepos23 = {x=436, y=170, z=7, stackpos=1}
stone23 = getThingfromPos(stonepos23).uid

alavancapos = {x=403, y=182, z=7, stackpos=3}
alavanca = getThingfromPos(alavancapos)

player1pos = {x=435, y=172, z=7, stackpos=253}
player1 = getThingfromPos(player1pos)
nplayer1pos = {x=441, y=152, z=6}

sta = doCreateItem(1444, 1, statuapos)
doTeleportThing(0, player1.uid,nplayer1pos, 0)
doSendMagicEffect(nplayer1pos,28)
setPlayerStorageValue(cid,3532,1)
doCreatureSay(cid, "Parabens bravo guerreiro!", TALKTYPE_ORANGE_1)
doTransformItem(alavanca.uid,alavanca.itemid-1)
doRemoveItem(statua)
doSetItemSpecialDescription(sta,"A honra e gloria para "..playername..", por terminar o nivel Greenhorn.")
doRemoveItem(stone22)
doRemoveItem(stone23)


end
return 1
end

This script working in TFS 0.3.5pl1 more not working in TFS 0.3.6pl1

I need help here, please help-me!
 
Code:
function onStepIn(cid, item, position, fromPosition)
	doTeleportThing(getThingfromPos({x=435, y=172, z=7, stackpos=253}), {x=441, y=152, z=6})
	doSendMagicEffect({x=441, y=152, z=6}, CONST_ME_FIREWORK_YELLOW)
	setPlayerStorageValue(cid, 3532, 1)
	doCreatureSay(cid, "Parabens bravo guerreiro!", TALKTYPE_ORANGE_1)
	local alavanca = getThingfromPos({x=403, y=182, z=7, stackpos=3})
	doTransformItem(alavanca.uid,alavanca.itemid-1)
	doRemoveItem(getThingfromPos({x=438, y=145, z=6, stackpos=1}).uid)
	doItemSetAttribute(doCreateItem(1444, 1, {x=438, y=145, z=6, stackpos=1}), "description", "A honra e gloria para "..getCreatureName(cid)..", por terminar o nivel Greenhorn.")
	doRemoveItem(getThingfromPos({x=436, y=168, z=7, stackpos=1}).uid)
	doRemoveItem(getThingfromPos({x=436, y=170, z=7, stackpos=1}).uid)
end
 
Back
Top