Ir para conteúdo

[Wodbo 8.0] Criando Vocations Parte 2


Posts Recomendados

Fala galera do xtibia hoje vou terminar o tutorial de como criar vocations em wodbo 8.0

Então vamos la

O que você vai precisar

- Somente o bloco de notas ou algum outro editor de sua preferencia

Para colocar reborn em uma Vocation va em data/npcs/scripts/reborn.lua

deve estar mais ou menos assim

 

local focus = 0

local talk_start = 0

local target = 0

local following = false

local attacking = false

 

function onThingMove(creature, thing, oldpos, oldstackpos)

 

end

 

 

function onCreatureAppear(creature)

 

end

 

 

function onCreatureDisappear(cid, pos)

if focus == cid then

selfSay('?????.')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureTurn(creature)

 

end

 

 

function msgcontains(txt, str)

return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))

end

 

 

function onCreatureSay(cid, type, msg)

msg = string.lower(msg)

 

if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then

 

selfSay('Hello. If you ready I can "Reborn" you.')

focus = cid

talk_start = os.clock()

 

 

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then

selfSay('Sorry, ' .. getCreatureName(cid) .. '! Hey!.')

 

elseif focus == cid then

talk_start = os.clock()

 

if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then

selfSay('Sorry, but you are after reborn.')

focus = 0

talk_start = 0

 

elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 350 and getPlayerStorageValue(cid,30023) ~= 4 then

selfSay('Hehe. Voce Nao Tem Level 350.')

 

 

elseif msgcontains(msg, 'reborn') then

selfSay('Tem Sertesa?')

talk_state = 2

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 20 then

doReborn(cid,201,137)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 25 or getPlayerVocation(cid) == 26 or getPlayerVocation(cid) == 37) then

doReborn(cid,214,152)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) >= 103 and getPlayerVocation(cid) <= 104 then

doReborn(cid,286,60)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 58 then

doReborn(cid,247,34)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 71 then

doReborn(cid,258,15)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 75 then

doReborn(cid,263,15)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 274 then

doReborn(cid,275,118)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 315) then

doReborn(cid,227,144)

doPlayerAddHealthMax(cid,20000)

doPlayerAddManaMax(cid,20000)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) >= 80 and getPlayerVocation(cid) <= 86 then

selfSay('You cannot reborn in fusion.')

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 318) then

doReborn(cid,232,150)

doPlayerAddHealthMax(cid,20000)

doPlayerAddManaMax(cid,20000)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 280 then

doReborn(cid,281,190)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 112 then

doReborn(cid,298,221)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 50 then

doReborn(cid,253,101)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then

doReborn(cid,208,148)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 44 then

doReborn(cid,237,173)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then

doReborn(cid,208,148)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 292 then

doReborn(cid,293,281)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 34 or getPlayerVocation(cid) == 35 or getPlayerVocation(cid) == 36) then

doReborn(cid,221,162)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 96 then

doReborn(cid,242,178)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then

doReborn(cid,268,184)

doPlayerAddHealthMax(cid,20000)

doPlayerAddManaMax(cid,20000)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 307 then

doReborn(cid,308,280)

doPlayerAddHealthMax(cid,20000)

doPlayerAddManaMax(cid,20000)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 335 then

doReborn(cid,336,79)

doPlayerAddHealthMax(cid,20000)

doPlayerAddManaMax(cid,20000)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

elseif msgcontains(msg, 'yes') and talk_state == 2 then

selfSay('Mals, ' .. getCreatureName(cid) .. '! Voce Tem que tar na transform serta.')

 

 

elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then

selfSay('Good bye.')

focus = 0

talk_start = 0

end

end

end

 

function onThink()

doNpcSetCreatureFocus(focus)

if (os.clock() - talk_start) > 45 then

if focus > 0 then

selfSay('Next Please...')

end

focus = 0

end

if focus ~= 0 then

if getDistanceToCreature(focus) > 5 then

selfSay('Good bye then.')

focus = 0

end

end

end

 

 

Agora nessa parte aqui

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 335 then

doReborn(cid,336,79)

doPlayerAddHealthMax(cid,20000)

doPlayerAddManaMax(cid,20000)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

copie e cole

agora vamos aprender a ajustar para a vocação que você criou

 

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 335 then

doReborn(cid,336,79)

doPlayerAddHealthMax(cid,20000)

doPlayerAddManaMax(cid,20000)

setPlayerStorageValue(cid,30023,4)

talk_state = 0

 

Configurando:

level necessario para rebornar

vocation normal

vocation transformada

looktype

 

Agora para colocar buffs nas vocations va em data/movements/first.lua

deve estar parecido com isso:

function onStepIn(cid, item, pos)
if isPlayer(cid) == 1 then

if getPlayerStorageValue(cid,20010) <= 0 then
doSkillBag(cid)
doPlayerAddItem(cid,2673,1)
doPlayerAddItem(cid,2148,1)
doPlayerAddItem(cid,2148,1)

if (getPlayerVocation(cid) == 1)
or (getPlayerVocation(cid) == 15)
or (getPlayerVocation(cid) == 16)
or (getPlayerVocation(cid) == 17)
or (getPlayerVocation(cid) == 18)
or (getPlayerVocation(cid) == 19)
or (getPlayerVocation(cid) == 20)
or (getPlayerVocation(cid) == 86)
or (getPlayerVocation(cid) == 201)
or (getPlayerVocation(cid) == 202)
or (getPlayerVocation(cid) == 203)
or (getPlayerVocation(cid) == 204)
or (getPlayerVocation(cid) == 205)
or (getPlayerVocation(cid) == 206)
or (getPlayerVocation(cid) == 207) then
doPlayerAddItem(cid,2313,1)
doPlayerAddItem(cid,2277,1)
doPlayerAddItem(cid,2300,1)
doPlayerAddItem(cid,2304,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2275,1)
doPlayerAddItem(cid,2305,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 2)
or (getPlayerVocation(cid) == 21)
or (getPlayerVocation(cid) == 22)
or (getPlayerVocation(cid) == 23)
or (getPlayerVocation(cid) == 24)
or (getPlayerVocation(cid) == 25)
or (getPlayerVocation(cid) == 26)
or (getPlayerVocation(cid) == 88)
or (getPlayerVocation(cid) == 214)
or (getPlayerVocation(cid) == 215)
or (getPlayerVocation(cid) == 216)
or (getPlayerVocation(cid) == 217)
or (getPlayerVocation(cid) == 218)
or (getPlayerVocation(cid) == 219)
or (getPlayerVocation(cid) == 220)
or (getPlayerVocation(cid) == 37) then
doPlayerAddItem(cid,2297,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2268,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 3)
or (getPlayerVocation(cid) == 41)
or (getPlayerVocation(cid) == 42)
or (getPlayerVocation(cid) == 43)
or (getPlayerVocation(cid) == 44)
or (getPlayerVocation(cid) == 237)
or (getPlayerVocation(cid) == 238)
or (getPlayerVocation(cid) == 239)
or (getPlayerVocation(cid) == 240)
or (getPlayerVocation(cid) == 241) then
doPlayerAddItem(cid,2296,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2276,1)
doPlayerAddItem(cid,2270,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 5)
or (getPlayerVocation(cid) == 68)
or (getPlayerVocation(cid) == 69)
or (getPlayerVocation(cid) == 70)
or (getPlayerVocation(cid) == 71)
or (getPlayerVocation(cid) == 258)
or (getPlayerVocation(cid) == 259)
or (getPlayerVocation(cid) == 260)
or (getPlayerVocation(cid) == 261)
or (getPlayerVocation(cid) == 262) then
doPlayerAddItem(cid,2297,1)
doPlayerAddItem(cid,2292,1)
doPlayerAddItem(cid,2291,1)
doPlayerAddItem(cid,2302,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2278,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 6)
or (getPlayerVocation(cid) == 27)
or (getPlayerVocation(cid) == 28)
or (getPlayerVocation(cid) == 29)
or (getPlayerVocation(cid) == 30)
or (getPlayerVocation(cid) == 90)
or (getPlayerVocation(cid) == 208)
or (getPlayerVocation(cid) == 209)
or (getPlayerVocation(cid) == 210)
or (getPlayerVocation(cid) == 211)
or (getPlayerVocation(cid) == 212)
or (getPlayerVocation(cid) == 213) then
doPlayerAddItem(cid,2283,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2276,1)
doPlayerAddItem(cid,2270,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2275,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 7)
or (getPlayerVocation(cid) == 31)
or (getPlayerVocation(cid) == 32)
or (getPlayerVocation(cid) == 33)
or (getPlayerVocation(cid) == 34)
or (getPlayerVocation(cid) == 35)
or (getPlayerVocation(cid) == 36)
or (getPlayerVocation(cid) == 221)
or (getPlayerVocation(cid) == 222)
or (getPlayerVocation(cid) == 223)
or (getPlayerVocation(cid) == 224)
or (getPlayerVocation(cid) == 225)
or (getPlayerVocation(cid) == 226) then
doPlayerAddItem(cid,2311,1)
doPlayerAddItem(cid,2272,1)
doPlayerAddItem(cid,2276,1)
doPlayerAddItem(cid,2268,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 8)
or (getPlayerVocation(cid) == 51)
or (getPlayerVocation(cid) == 52)
or (getPlayerVocation(cid) == 53)
or (getPlayerVocation(cid) == 274)
or (getPlayerVocation(cid) == 275)
or (getPlayerVocation(cid) == 276)
or (getPlayerVocation(cid) == 277)
or (getPlayerVocation(cid) == 278)
or (getPlayerVocation(cid) == 279) then
doPlayerAddItem(cid,2299,1)
doPlayerAddItem(cid,2301,1)
doPlayerAddItem(cid,2300,1)
doPlayerAddItem(cid,2278,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2275,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 9)
or (getPlayerVocation(cid) == 45)
or (getPlayerVocation(cid) == 46)
or (getPlayerVocation(cid) == 47)
or (getPlayerVocation(cid) == 48)
or (getPlayerVocation(cid) == 49)
or (getPlayerVocation(cid) == 50)
or (getPlayerVocation(cid) == 253)
or (getPlayerVocation(cid) == 254)
or (getPlayerVocation(cid) == 255)
or (getPlayerVocation(cid) == 256)
or (getPlayerVocation(cid) == 257)
or (getPlayerVocation(cid) == 331)
or (getPlayerVocation(cid) == 332)
or (getPlayerVocation(cid) == 333)
or (getPlayerVocation(cid) == 334)
or (getPlayerVocation(cid) == 329)
or (getPlayerVocation(cid) == 330)
or (getPlayerVocation(cid) == 304)
or (getPlayerVocation(cid) == 305)
or (getPlayerVocation(cid) == 306)
or (getPlayerVocation(cid) == 303)
or (getPlayerVocation(cid) == 304)
or (getPlayerVocation(cid) == 305)
or (getPlayerVocation(cid) == 306)
or (getPlayerVocation(cid) == 309)
or (getPlayerVocation(cid) == 310)
or (getPlayerVocation(cid) == 311)
or (getPlayerVocation(cid) == 312)

or (getPlayerVocation(cid) == 307) then
doPlayerAddItem(cid,2293,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2303,1)
doPlayerAddItem(cid,2294,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 10)
or (getPlayerVocation(cid) == 54)
or (getPlayerVocation(cid) == 55)
or (getPlayerVocation(cid) == 56)
or (getPlayerVocation(cid) == 57)
or (getPlayerVocation(cid) == 58)
or (getPlayerVocation(cid) == 247)
or (getPlayerVocation(cid) == 248)
or (getPlayerVocation(cid) == 249)
or (getPlayerVocation(cid) == 250)
or (getPlayerVocation(cid) == 251)
or (getPlayerVocation(cid) == 252) then
doPlayerAddItem(cid,2282,1)
doPlayerAddItem(cid,2289,1)
doPlayerAddItem(cid,2300,1)
doPlayerAddItem(cid,2281,1)
doPlayerAddItem(cid,2306,1)
doPlayerAddItem(cid,2275,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2298,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 11)
or (getPlayerVocation(cid) == 59)
or (getPlayerVocation(cid) == 60)
or (getPlayerVocation(cid) == 61)
or (getPlayerVocation(cid) == 96)
or (getPlayerVocation(cid) == 242)
or (getPlayerVocation(cid) == 243)
or (getPlayerVocation(cid) == 244)
or (getPlayerVocation(cid) == 245)
or (getPlayerVocation(cid) == 246) then
doPlayerAddItem(cid,2297,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2268,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 12) or (getPlayerVocation(cid) == 62) or (getPlayerVocation(cid) == 63) or (getPlayerVocation(cid) == 64) or (getPlayerVocation(cid) == 65) or (getPlayerVocation(cid) == 268) or (getPlayerVocation(cid) == 269) or (getPlayerVocation(cid) == 270) or (getPlayerVocation(cid) == 271) or (getPlayerVocation(cid) == 272) or (getPlayerVocation(cid) == 273) then
doPlayerAddItem(cid,2297,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2268,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 13) or (getPlayerVocation(cid) == 72) or (getPlayerVocation(cid) == 73) or (getPlayerVocation(cid) == 74) or (getPlayerVocation(cid) == 75) or (getPlayerVocation(cid) == 263) or (getPlayerVocation(cid) == 264) or (getPlayerVocation(cid) == 265) or (getPlayerVocation(cid) == 266) or (getPlayerVocation(cid) == 267) then
doPlayerAddItem(cid,2297,1)
doPlayerAddItem(cid,2292,1)
doPlayerAddItem(cid,2291,1)
doPlayerAddItem(cid,2302,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2278,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 14) then
doPlayerAddItem(cid,2297,1)
doPlayerAddItem(cid,2292,1)
doPlayerAddItem(cid,2291,1)
doPlayerAddItem(cid,2302,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2278,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 76) or (getPlayerVocation(cid) == 77) or (getPlayerVocation(cid) == 80) or (getPlayerVocation(cid) == 81) or (getPlayerVocation(cid) == 82) or (getPlayerVocation(cid) == 227) or (getPlayerVocation(cid) == 228) or (getPlayerVocation(cid) == 229) or (getPlayerVocation(cid) == 230) or (getPlayerVocation(cid) == 231) then
doPlayerAddItem(cid,2283,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2276,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2275,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 78) or (getPlayerVocation(cid) == 79) or (getPlayerVocation(cid) == 83) or (getPlayerVocation(cid) == 84) or (getPlayerVocation(cid) == 85) or (getPlayerVocation(cid) == 232) or (getPlayerVocation(cid) == 233) or (getPlayerVocation(cid) == 234) or (getPlayerVocation(cid) == 235) or (getPlayerVocation(cid) == 236) then
doPlayerAddItem(cid,2296,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2276,1)
doPlayerAddItem(cid,2268,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2275,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 91) or (getPlayerVocation(cid) == 92) or (getPlayerVocation(cid) == 280) or (getPlayerVocation(cid) == 93) or (getPlayerVocation(cid) == 94) or (getPlayerVocation(cid) == 95) or (getPlayerVocation(cid) == 281) or (getPlayerVocation(cid) == 282) or (getPlayerVocation(cid) == 283) or (getPlayerVocation(cid) == 284) or (getPlayerVocation(cid) == 285) then
doPlayerAddItem(cid,2293,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2303,1)
doPlayerAddItem(cid,2294,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2284,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 100) or (getPlayerVocation(cid) == 101) or (getPlayerVocation(cid) == 102) or (getPlayerVocation(cid) == 103) or (getPlayerVocation(cid) == 104) or (getPlayerVocation(cid) == 113) or (getPlayerVocation(cid) == 286) or (getPlayerVocation(cid) == 287) or (getPlayerVocation(cid) == 288) or (getPlayerVocation(cid) == 289) or (getPlayerVocation(cid) == 290) or (getPlayerVocation(cid) == 291) then
doPlayerAddItem(cid,2261,1)
doPlayerAddItem(cid,2307,1)
doPlayerAddItem(cid,2310,1)
doPlayerAddItem(cid,2266,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2267,1)
doPlayerAddItem(cid,2314,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2312,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 105) or (getPlayerVocation(cid) == 106) or (getPlayerVocation(cid) == 107) or (getPlayerVocation(cid) == 108) or (getPlayerVocation(cid) == 292) or (getPlayerVocation(cid) == 293) or (getPlayerVocation(cid) == 294) or (getPlayerVocation(cid) == 295) or (getPlayerVocation(cid) == 296) or (getPlayerVocation(cid) == 297) then
doPlayerAddItem(cid,2282,1)
doPlayerAddItem(cid,2285,1)
doPlayerAddItem(cid,2276,1)
doPlayerAddItem(cid,2281,1)
doPlayerAddItem(cid,2306,1)
doPlayerAddItem(cid,2275,1)
doPlayerAddItem(cid,2286,1)
doPlayerAddItem(cid,2298,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2312,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)

elseif (getPlayerVocation(cid) == 109) or (getPlayerVocation(cid) == 110) or (getPlayerVocation(cid) == 111) or (getPlayerVocation(cid) == 112) or (getPlayerVocation(cid) == 298) or (getPlayerVocation(cid) == 299) or (getPlayerVocation(cid) == 300) or (getPlayerVocation(cid) == 301) or (getPlayerVocation(cid) == 302) then
doPlayerAddItem(cid,2271,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2316,1)
doPlayerAddItem(cid,2270,1)
doPlayerAddItem(cid,2273,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2280,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2312,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)



elseif (getPlayerVocation(cid) == 303)
or (getPlayerVocation(cid) == 304)
or (getPlayerVocation(cid) == 305)
or (getPlayerVocation(cid) == 306)
or (getPlayerVocation(cid) == 307)
or (getPlayerVocation(cid) == 308)
or (getPlayerVocation(cid) == 309) then
doPlayerAddItem(cid,2293,1)
doPlayerAddItem(cid,2290,1)
doPlayerAddItem(cid,2303,1)
doPlayerAddItem(cid,2294,1)
doPlayerAddItem(cid,2308,1)
doPlayerAddItem(cid,2288,1)
doPlayerAddItem(cid,2295,1)
doPlayerAddItem(cid,2309,1)
doPlayerAddItem(cid,2269,1)
doPlayerAddItem(cid,2312,1)
doPlayerAddItem(cid,2287,1)
doPlayerAddItem(cid,2315,1)



end


setPlayerStorageValue(cid,20010,3)
end
end
return 1
end

para adicionar os buffs para tal vocation simplesmente adicione a linha:

or (getPlayerVocation(cid) == 206)

em 206 você coloca o id da vocation

lembrando que se for o ultimo daquela lista de buffs tem um then no final da linha

or (getPlayerVocation(cid) == 206)  then 

Editado por PostadorHunter
Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...

Agora eu estava vendo aqui.

 

Fala galera do absoft hoje vou terminar o tutorial de como criar vocations em wodbo 8.0

 

absoft?

 

Coloque os creditos de onde vc pegou.

eu que fiz o tutorial

eu tinha postado la

so peguei e coloquei aqui

esqueci de muda essa parte

editei ja

 

alguem pode ma juda quando os players vao atk level mais alto nao da e aparece isso: you is to strong for you

qual seu server ? Editado por PostadorHunter
Link para o comentário
Compartilhar em outros sites

  • 1 month later...
  • 2 months later...

vlwww e continue assim trazendo mais coisas para o Xtibia :D ajudara/ajudou muitas pessoas :D. ei cara apropozito tem como vc postar as sprites da vocation Shin ? ;x

Editado por gian1616
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...