Witam
Zrobi?em sobie w actions vip promotion rune. No wygl?da? wygl?da, ale nie chce przerabia? mi profesji (vocation).
Oto kod
Co mo?e by? nie tak?
Pozdrawiam
Zrobi?em sobie w actions vip promotion rune. No wygl?da? wygl?da, ale nie chce przerabia? mi profesji (vocation).
Oto kod
PHP:
-- Script by Magic,Repaired by Kawon
function onUse(cid, item, frompos, item2, topos)
local idruny = 2275 -- Tu wpisz ID Runy
local voc = getPlayerVocation(cid)
if item.itemid == idruny then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid, 1)
doSetItemSpecialDescription(item.uid,"This change your vocation to Epic")
if voc == 1 then
doPlayerSetVocation(cid,9)
elseif voc == 5 then
doPlayerSetVocation(cid,9)
elseif voc == 2 then
doPlayerSetVocation(cid,10)
elseif voc == 6 then
doPlayerSetVocation(cid,10)
elseif voc == 3 then
doPlayerSetVocation(cid,11)
elseif voc == 7 then
doPlayerSetVocation(cid,11)
elseif voc == 4 then
doPlayerSetVocation(cid,12)
elseif voc == 8 then
doPlayerSetVocation(cid,12)
end
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Gratulacje! Wlasnie zmieniles swoja profesje!") -- Co bedzie napisane.
end
end
Pozdrawiam