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

transform

kilddqvist

New Member
Joined
Mar 13, 2022
Messages
12
Reaction score
0
cześć!

na postaci 23 i 382 (vocation totali, wszystko daje ladnie) ale jak padne (zabiją mnie potworki) to zmienia mi vocations na waki i jestem tą postacią o co chodzi?

Lua:
local he1 = 5000
local ma1 = 10000

function onSay(cid, words, param)
local pos = {x = getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}

if getPlayerPremiumDays(cid) >= 1 then
if getPlayerVocation(cid) == 17 and getPlayerLevel(cid) >= 450 and getPlayerStorageValue(cid, 177997) == 1 then ---waki
doPlayerSetVocation(cid, 381)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he1)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma1)                     
doCreatureAddHealth(cid, 1, false) 
doCreatureAddMana(cid, 1, false)
local outfit = {lookType = 1044 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
doSetCreatureOutfit(cid, outfit, -1)
doSendAnimatedText(getCreaturePosition(cid), '!.LAST.!', math.random(255))
doSendMagicEffect(pos, 341)

elseif getPlayerVocation(cid) == 23 and getPlayerLevel(cid) >= 450 and getPlayerStorageValue(cid, 177997) == 1  then ---totali
doPlayerSetVocation(cid, 382)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he1)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma1)                     
doCreatureAddHealth(cid, 1, false) 
doCreatureAddMana(cid, 1, false)
local outfit = {lookType = 240 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
doSetCreatureOutfit(cid, outfit, -1)
doSendAnimatedText(getCreaturePosition(cid), '!.LAST.!', math.random(255))
doSendMagicEffect(pos, 341)

doPlayerSendCancel(cid, "You use 'last' transform!")
else
doPlayerSendCancel(cid, "Your 'last' transform is available on 450lvl + quest!")
end
else
doPlayerSendCancel(cid, "You must have pacc.")
end
return true
end
 
Back
Top