jubix
New Member
- Joined
- Aug 7, 2007
- Messages
- 21
- Reaction score
- 0
I was made that script:
The vocation are not changing. What is wrong? Pleae reply.
Code:
-StArT-
function onSay(cid, words, param)
-SeTtInGs-
local mana = 10
local voce = 1
local lvl = 30
local voc = 2
local vocTime = 6000
local pacc = 0
local pacce = 0
local outfit = {lookType=7,lookHead=0,lookAddons=0,lookLegs=0,lookBody=0,lookFeet=0}
local outfitTime = 6000
local napis = "Transformation!"
-CoDe-
if(getPlayerMana(cid) >= mana and getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl and isPremium(cid) == pacc or isPremium(cid) == pacce and getPlayerVocation(cid) < voc )then
doPlayerSetVocation(cid, voc, vocTime)
doPlayerAddMana(cid,-mana)
doSetCreatureOutfit(cid, outfit, outfitTime)
doPlayerSay(cid,napis,16)
else
doPlayerSendCancel(cid,"You are too weak.")
end
return 1
end
-EnD-