What's new

Skrypty & Kody Transform System!

Status
Not open for further replies.

Restles

Senior User
Joined
Aug 31, 2012
Messages
616
Reaction score
51
Witam, ot?z chce zrobic transy w spells (aktualnie sa w talkactions) a tam jest troszke '****owow' gdy? mam po 5 transow na 1 osobe i zeby one zadzialaly musze zrobic np cos takiego:
HTML:
nazwaprofki1
nazwaprofki2
nazwaprofki3
nazwaprofki4
nazwaprofki5

Dodam jeszcze ze jak zmienie na takie cos
HTML:
transform
transform
transform
transform
transform
To nie moze uzywac wiecej transow opr?cz tego 1.
Jak chce zeby to wygladalo?, chce to jakos zrobic w spells ale nie jestem pewny czy to tak samo sie robi... na dodatek jak pisze te 'nazwaprofki1' to nie widac tego napisu np na "orange"
Wyjasni mi kto? jak to zrobic?
 

luzio777

User
Joined
Mar 24, 2011
Messages
42
Reaction score
1
Odp: Transform System!

Nie wiem za bardzo o co Ci chodzi, ale masz tu taki skrypcik na Transform Spells ;D
PHP:
function onCastSpell(cid, var)
--Goku
if getPlayerVocation(cid) == 1 then  - Vacation Naszej Profesji
if getPlayerLevel(cid) >= 30 then - Lvl Profesji
if exhaustion.get(cid,61260) == false then
doPlayerSetVocation(cid,2) - Na jaki ma zmienia?
     doCreatureChangeOutfit(cid, {lookType=352}) - Wygl?d profesji
     doSendMagicEffect(getCreaturePosition(cid), 128) - Efekt ktory poka?e sie nam rzy transformacji
     setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+500)
     setCreatureMaxMana(cid, getCreatureMaxMana(cid)+500) 
     doPlayerSendCancel(cid, "Transform - 30 LVL.")  - Napis gdy nie mam wymagan
exhaustion.set(cid,61260,0)
else


end
return true
end

elseif getPlayerVocation(cid) == 2 then -Aby dodac nowy transform dodajemy to samo 
if getPlayerLevel(cid) >= 50 then
if exhaustion.get(cid,61260) == false then
doPlayerSetVocation(cid,3)
     doCreatureChangeOutfit(cid, {lookType=7})
     doSendMagicEffect(getCreaturePosition(cid), 12)
     setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+1000)
     setCreatureMaxMana(cid, getCreatureMaxMana(cid)+1000)
     doPlayerSendCancel(cid, "Transform - 50 LVL.")
exhaustion.set(cid,61260,0)
else

end
return true
end

end 
end
 
Status
Not open for further replies.
Top