What's new

Transform Brakuj?ce elementy

River

Active User
Joined
Dec 11, 2008
Messages
57
Reaction score
7
Witam ot?? zrobi?em skrypt na transa ale brakuje mu pare element?w mianowicie jak doda? efekt piorunk?w do niego tzn ?eby co 2 sekundy pokazywa?y si? piorunki i trwa?y by tak d?ugo jak trwa trans.
Drugim elementem jest to ze gdy si? wyloguje to traci si? outfit tzn outfit powraca do wygl?du poprzedniego np. Goku normal transformuje si? w ssj a gdy relognie to ma wygl?d goku normal ale jest jako ssj.
Trzecim brakuj?cym elementem jest to, ?e nie wiem jak zrobi? ?eby co 1sekunde bra?o 100 many
Oto skrypt:
Code:
if getPlayerVocation(cid) == 206 then ---goku
local level = 350 -- wymagany lvl
if getPlayerLevel(cid) >= level then
doPlayerSetVocation(cid, 207)
local outfit = { lookType = 237 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
doSetCreatureOutfit(cid, outfit, -1)
doSendMagicEffect(getCreaturePosition(cid), 32)
Za pomoc nagrodze reputem
 

Amino12

Advanced User
Joined
Jun 12, 2008
Messages
292
Reaction score
48
Odp: Transform Brakuj?ce elementy

dodajesz takie co? przed g??wn? funkcj? onCastSpell:
Code:
function costam()
doSendMagicEffect(getCreaturePosition(cid), 32)
addevent(costam, 2000)
end
oraz to przy tym co poda?e?:
Code:
addevent(costam, 1)
i tak samo do -100 many co sekund?

a co do znikania outfitu po relogu, to dodaj skrypt w creaturescripts/scripts/login.lua, kt?ry sprawdza jaka profa i wg. tego zmienia wygl?d.
 
Last edited:

River

Active User
Joined
Dec 11, 2008
Messages
57
Reaction score
7
Odp: Transform Brakuj?ce elementy

Da?em i nie dzia?a :(
Code:
function costam()
doSendMagicEffect(getCreaturePosition(cid), 180)
addevent(costam, 2000)
end
function onSay(cid, words, param)
if getPlayerVocation(cid) == 231 then ---Goten
local level = 250 -- wymagany lvl
if getPlayerLevel(cid) >= level then
doPlayerSetVocation(cid, 311)
doPlayerAddOutfit(cid,170,3)
doSendMagicEffect(getCreaturePosition(cid), 32)
doPlayerSendCancel(cid, "Full Power!!")
addevent(costam, 1)
end
return true
end

a w login.lua mam taki skrypt
Code:
local VOCATION_STORAGE = 10000
function onLogin(cid)
    if(getPlayerStorageValue(cid, VOCATION_STORAGE) > 0) then
        doPlayerSetVocation(cid, getPlayerStorageValue(cid, VOCATION_STORAGE))
        setPlayerStorageValue(cid, VOCATION_STORAGE, 0)
    end
    return TRUE
end
 

River

Active User
Joined
Dec 11, 2008
Messages
57
Reaction score
7
Odp: Transform Brakuj?ce elementy

Refresh

Nadal potrzebuje pomocy
 
Top