Simonp1512
DBhispano
- Joined
- Feb 22, 2009
- Messages
- 62
- Reaction score
- 3
hi i have a problem with my scrip, i'm trying to add a new vocation but when i type "ultra" to transform in the new transform, no work, any idea? thx
C++:
local ma = 4000
local he = 4000
------------------------
function onSay(cid,words,param)
if exhaustion.get(cid, 107) then
doPlayerSendCancel(cid, 'Slow down.')
return true
end
exhaustion.set(cid, 107, 1)
c16 = {lookType=307}
janemba = {lookType=224}
yamcha = {lookType=237}
raditz = {lookType=299}
gotenks = {lookType=28}
goku = {lookType=168}
bardock = {lookType=70}
uub = {lookType=23}
cell = {lookType=55}
c17 = {lookType=83}
c18 = {lookType=103}
freeza = {lookType=263}
cooler = {lookType=118}
tsuful = {lookType=187}
piccolo = {lookType=72}
dende = {lookType=230}
vegeta = {lookType=135}
trunks = {lookType=96}
gohan = {lookType=353}
brolly = {lookType=61}
xicor = {lookType=330}
kame1 = {lookType=369}
---Goku---
if getPlayerVocation(cid) == 10 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,11)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, goku)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Goku! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Gotenks---
elseif getPlayerVocation(cid) == 207 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,208)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, gotenks)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Gotenks! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Yamcha---
elseif getPlayerVocation(cid) == 282 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,283)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, yamcha)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Yamcha! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Janemba---
elseif getPlayerVocation(cid) == 269 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,270)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, janemba)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Janemba! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Raditz---
elseif getPlayerVocation(cid) == 252 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,253)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, raditz)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Raditz! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---C16---
elseif getPlayerVocation(cid) == 239 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,240)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c16)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "C16! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Bardock---
elseif getPlayerVocation(cid) == 23 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,24)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, bardock)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Bardock! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Uub---
elseif getPlayerVocation(cid) == 36 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,37)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, uub)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Uub! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Cell---
elseif getPlayerVocation(cid) == 49 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,50)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, cell)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Cell! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---C17---
elseif getPlayerVocation(cid) == 62 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,63)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c17)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "C17! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---C18---
elseif getPlayerVocation(cid) == 75 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,76)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c18)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "C18! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Freeza---
elseif getPlayerVocation(cid) == 88 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,89)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, freeza)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Freeza! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Cooler---
elseif getPlayerVocation(cid) == 101 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,102)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, cooler)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Cooler! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Tsuful---
elseif getPlayerVocation(cid) == 114 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,115)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, tsuful)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Tsuful! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Piccolo---
elseif getPlayerVocation(cid) == 127 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,128)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, piccolo)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Piccolo! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Dende---
elseif getPlayerVocation(cid) == 140 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,141)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, dende)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Dende! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Vegeta---
elseif getPlayerVocation(cid) == 153 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,154)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, vegeta)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Vegeta! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Trunks---
elseif getPlayerVocation(cid) == 166 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,167)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, trunks)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Trunks! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Gohan---
elseif getPlayerVocation(cid) == 179 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,180)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, gohan)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Gohan! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Brolly---
elseif getPlayerVocation(cid) == 192 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,193)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, brolly)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Brolly! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Xicor---
elseif getPlayerVocation(cid) == 220 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,221)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, xicor)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Xicor! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Xicor---
elseif getPlayerVocation(cid) == 293 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,221)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, kame)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 100)
else
doPlayerSendCancel(cid, "Xicor! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---kame---
elseif getPlayerVocation(cid) == 293 then
if getPlayerStorageValue(cid, 9999) >= 1 and getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,294)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+he1)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+ma1)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, kame1)
doSendMagicEffect(getPlayerPosition(cid), 106)
doSendAnimatedText(getCreaturePosition(cid), "Ultra!", 150)
else
doPlayerSendCancel(cid, "Kame! You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- End ---
else
doPlayerSendCancel(cid, "You must learn this transformation.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return 0
end
[/end]