Serp
/* No comment */
- Joined
- Mar 23, 2008
- Messages
- 249
- Reaction score
- 1
Just a little something someone asked for so i'm giving it out here
incase anyone else wants it.
its the exact same phrases as real tibia
and the Orange text appears ABOVE THE DOLL when its not
in your bag. and above the players head when in the bag
Enjoy
add this to Actions.xml
Make this file in your action scripts folder Dragon doll.lua
Add this to Global.lua
incase anyone else wants it.
its the exact same phrases as real tibia
and the Orange text appears ABOVE THE DOLL when its not
in your bag. and above the players head when in the bag
Enjoy
add this to Actions.xml
PHP:
action itemid="5791" script="dragon doll.lua" />
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if fromPosition.x ~= CONTAINER_POSITION then
if math.random(1, 5) == 1 then
doCreatureSayWithDistance(cid, fromPosition, "Fchhhhhh!", TALKTYPE_ORANGE_1)
elseif math.random(1, 5) == 2 then
doCreatureSayWithDistance(cid, fromPosition, "Zchhhhhh!", TALKTYPE_ORANGE_1)
elseif math.random(1,5) == 3 then
doCreatureSayWithDistance(cid, fromPosition, "Grooaaaaar *cough*", TALKTYPE_ORANGE_1)
elseif math.random(1, 5) == 4 then
doCreatureSayWithDistance(cid, fromPosition, "Aaa... CHOO!", TALKTYPE_ORANGE_1)
elseif math.random(1, 5) == 5 then
doCreatureSayWithDistance(cid, fromPosition, "You... will.... burn!!", TALKTYPE_ORANGE_1)
end
else
if math.random(1, 5) == 1 then
doCreatureSay(cid, "Fchhhhhh!", TALKTYPE_ORANGE_1)
elseif math.random(1, 5) == 2 then
doCreatureSay(cid, "Zchhhhhh!", TALKTYPE_ORANGE_1)
elseif math.random(1,5) == 3 then
doCreatureSay(cid, "Grooaaaaar *cough*", TALKTYPE_ORANGE_1)
elseif math.random(1, 5) == 4 then
doCreatureSay(cid, "Aaa... CHOO!", TALKTYPE_ORANGE_1)
elseif math.random(1, 5) == 5 then
doCreatureSay(cid, "You... will.... burn!!", TALKTYPE_ORANGE_1)
end
end
return TRUE
end
Add this to Global.lua
PHP:
function doCreatureSayWithDistance(cid, position, text, type)
oldPosX = setPlayerStorageValue(cid, 10000, getCreaturePosition(cid).x)
oldPosY = setPlayerStorageValue(cid, 10001, getCreaturePosition(cid).y)
oldPosZ = setPlayerStorageValue(cid, 10002, getCreaturePosition(cid).z)
oldPos = { x = getPlayerStorageValue(cid, 10000), y = getPlayerStorageValue(cid, 10001), z = getPlayerStorageValue(cid, 10002) }
doTeleportThing(cid, position, 0)
doCreatureSay(cid, text, type)
return doTeleportThing(cid, oldPos, 0)
end