Animera
* * * * *
I'm using crying damson 0.3.5pl
and i put this as talkaction if i load my server it shows up no error and if i use talkaction nothing happens like you just writed a word in default and then it doesn't show any error either.
and i put this as talkaction if i load my server it shows up no error and if i use talkaction nothing happens like you just writed a word in default and then it doesn't show any error either.
PHP:
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_MANAGAIN, -10)
setConditionParam(condition, CONDITION_PARAM_MANATICKS, 1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAXHEALTH, 200)
setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANA, 300)
local lvl = 10 -- Requested Level of first transformation
local goku = 1 -- Vocation id
local vegeta = 2 -- Vocation id
local gohan = 3 -- Vocation id
local trunks = 4 -- Vocation id
local piccolo = 5 -- Vocation id
local ssj1goku = 6 -- Vocation id
local ssj1vegeta = 7 -- Vocation id
local ssj1gohan = 8 -- Vocation id
local ssj1trunks = 9 -- Vocation id
local supernamek = 10 -- Vocation id
local effect = 36 -- Spell effect
local say = Transform -- Say X if transform
local lowki = 100 -- X Ki transforms back to normal
function onSay(cid, param, words)
if vocation == 1 and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid, ssj1goku)
doSendMagicEffect(getPlayerPosition(cid),effect)
doCreatureSay(cid, say, TALKTYPE_ORANGE_1)
doAddCondition(cid, condition)
end
if vocation == ssj1goku and getPlayerMana(cid) < lowki then
doPlayerSetVocation(cid,goku)
getCreatureCondition(cid, condition, -1)
end
if vocation == 2 and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid, ssj1vegeta)
doSendMagicEffect(getPlayerPosition(cid),effect)
doCreatureSay(cid, say, TALKTYPE_ORANGE_1)
doAddCondition(cid, condition)
end
if vocation == ssj1vegeta and getPlayerMana < lowki then
doPlayerSetVocation(cid,vegeta)
getCreatureCondition(cid, condition, -1)
end
if vocation == 3 and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid, ssj1gohan)
doSendMagicEffect(getPlayerPosition(cid),effect)
doCreatureSay(cid, say, TALKTYPE_ORANGE_1)
doAddCondition(cid, condition)
end
if vocation == ssj1gohan and getPlayerMana < lowki then
doPlayerSetVocation(cid,gohan)
getCreatureCondition(cid, condition, -1)
end
if vocation == 4 and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid, ssj1trunks)
doSendMagicEffect(getPlayerPosition(cid),effect)
doCreatureSay(cid, say, TALKTYPE_ORANGE_1)
doAddCondition(cid, condition)
end
if vocation == ssj1trunks and getPlayerMana < lowki then
doPlayerSetVocation(cid,trunks)
getCreatureCondition(cid, condition, -1)
end
if vocation == 5 and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid, supernamek)
doSendMagicEffect(getPlayerPosition(cid),effect)
doCreatureSay(cid, say, TALKTYPE_ORANGE_1)
doAddCondition(cid, condition)
end
if vocation == supernamek and getPlayerMana < lowki then
doPlayerSetVocation(cid,piccolo)
getCreatureCondition(cid, condition, -1)
end
if vocation == ssj1goku and getPlayerLevel(cid) >= lvl then
doPlayerSendCancel(cid,"You reached your limit.")
end
if vocation == ssj1vegeta and getPlayerLevel(cid) >= lvl then
doPlayerSendCancel(cid,"You reached your limit.")
end
if vocation == ssj1gohan and getPlayerLevel(cid) >= lvl then
doPlayerSendCancel(cid,"You reached your limit.")
end
if vocation == ssj1trunks and getPlayerLevel(cid) >= lvl then
doPlayerSendCancel(cid,"You reached your limit.")
end
if vocation == supernamek and getPlayerLevel(cid) >= lvl then
doPlayerSendCancel(cid,"You reached your limit.")
end
function onDeath(cid)
if vocation == ssj1goku then doPlayerSetVocation(cid,goku)
getCreatureCondition(cid, condition, -1)
end
if vocation == ssj1vegeta then doPlayerSetVocation(cid,vegeta)
getCreatureCondition(cid, condition, -1)
end
if vocation == ssj1gohan then doPlayerSetVocation(cid,gohan)
getCreatureCondition(cid, condition, -1)
end
if vocation == ssj1trunks then doPlayerSetVocation(cid,trunks)
getCreatureCondition(cid, condition, -1)
end
if vocation == supernamek then doPlayerSetVocation(cid,piccolo)
getCreatureCondition(cid, condition, -1)
end
end
end