mati1389
Active User
- Joined
- May 9, 2010
- Messages
- 64
- Reaction score
- 2
Witam. Czy m?g?by mi kto? po??czy? te 2 skrypty ? bo niestety nie mo?na ,,pod??czy?" 2 skrypt?w actions do 1 itemu. S? one odpowiedzialne (1) za teleportacje do temple, a (2) za zmian? outfitu. Tibia 7.92. Oto skrypty :
i
Z g?ry dzi?kuj?.
Code:
function onUse(cid, item, frompos, item2, topos)
local storageValue = 12198
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=502, y=358, z=7} -- pozycja temple VIP-a!
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.itemid == 5468 and
getPlayerStorageValue(cid,12198) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 12)
setPlayerStorageValue(cid,12198,1)
doPlayerSay(cid, "Teleportowales sie do temple konoha.", TALKTYPE_ORANGE_1)
end
end
return 1
end
i
Code:
function onUse(cid, item, frompos, item2, topos)
local storage = 1800
setPlayerStorageValue(cid, storage+1, getCreatureOutfit(cid).lookHead)
setPlayerStorageValue(cid, storage+2, getCreatureOutfit(cid).lookBody)
setPlayerStorageValue(cid, storage+3, getCreatureOutfit(cid).lookLegs)
setPlayerStorageValue(cid, storage+4, getCreatureOutfit(cid).lookFeet)
standardoutfit = { lookType = 74, lookHead = getPlayerStorageValue(cid, storage+1), lookBody = getPlayerStorageValue(cid, storage+2), lookLegs = getPlayerStorageValue(cid, storage+3), lookFeet = getPlayerStorageValue(cid, storage+4), lookAddons = getPlayerStorageValue(cid, storage+5) }
doSetCreatureOutfit(cid, standardoutfit, 10*60*1000)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos, 20)
end
Z g?ry dzi?kuj?.
Notka moderatorska: |
Dodane code. Don Dawido. |