What's new

Inne Pioruny source w Wodbo

KokoSzambo

Advanced User
Joined
Mar 25, 2010
Messages
237
Reaction score
4
Age
29
Witajcie,

kilka dni temu postanowi?em pobawi? si? znowu z OTS'ami i stworzy?em now? klase, no i w tym momencie s? problemy. Jest trans na 200 lvl, ale nie wiem jak doda? mu piorunki, doda?em w?asn? grafike piorunk?w i teraz nie wiem jak doda? piorunki do outfitu.

outfit [365] = {273} piorunki
 

Azuu

Active User
Joined
Jul 16, 2015
Messages
99
Reaction score
20
Odp: Pioruny source w Wodbo

WoDBO nie ma source, musisz wykona? zap?tlaj?c? si? instrukcj? addEvent z wy?wietlaniem piorunk?w przy transformacji lub logowaniu.
 

KokoSzambo

Advanced User
Joined
Mar 25, 2010
Messages
237
Reaction score
4
Age
29
Odp: Pioruny source w Wodbo

WoDBO nie ma source, musisz wykona? zap?tlaj?c? si? instrukcj? addEvent z wy?wietlaniem piorunk?w przy transformacji lub logowaniu.

Z tym wodbo da??m przyk?ad, ale raczej chodzi mi gdzie w source pod jakim plikiem mam szuka? i pod nazw?, bo tak to nowe transy maj?.
Serwer: tibia.net.pl/threads/580857-DBOnline-(DBViolent-Mega-Edited-By-Ri-Ku-Ru)
 

KokoSzambo

Advanced User
Joined
Mar 25, 2010
Messages
237
Reaction score
4
Age
29
Odp: Pioruny source w Wodbo

~ ref.
nie pami?tam po jakim czasie mozna od?wie?a? tematy, a nie mog? znale?? regulaminu dotycz?ce tego, niech kto? pode?le mi notk? co ile mo?na.

Chodzi mi o takie piorunki:
Pqdkht3.png
 

TenTypSwir

NNSTORY.EU Developer
Joined
Jun 8, 2010
Messages
1,657
Reaction score
117
Odp: Pioruny source w Wodbo

W violencie w data/globalevents/scripts/ tam poszukaj magiceffects.lua albo efekty.lua piorunki.lua czy cos w ten desen - jak cos polataj po plikach ;)
 

KokoSzambo

Advanced User
Joined
Mar 25, 2010
Messages
237
Reaction score
4
Age
29
Odp: Pioruny source w Wodbo

Znalazlem ogolnie poradnik z source, ale wywala mi blad przy kompilacji. Uzywam by leon ale nadal to samo... cos z Makefile.win
 

beliar34

User
Joined
Oct 8, 2014
Messages
23
Reaction score
0
Odp: Pioruny source w Wodbo

[LUA]local config =
{
storage = 31520,
timee = 1, -- po jakim czasie zostaje wyswietlony efekt
efekt1 = 24,
efekt2 = 22,
efekt3 = 14,
efekt4 = 9,
efekt5 = 21,
efekt6 = 18,
efekt7 = 57,
efekt8 = 89
}
function onThink(cid, interval)
if getPlayerVocation(cid) == 4 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 5 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 6 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 66 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt8)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 44 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),14)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 45 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),14)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 75 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 76 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 77 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 78 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 79 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 80 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt7)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 81 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 85 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 90 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 94 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt3)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 74 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),14)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 99 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 101 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 105 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 107 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 113 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt6)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 120 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 126 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)
elseif getPlayerVocation(cid) == 123 and exhaustion.get(cid, config.storage) == false then
doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
exhaustion.set(cid,config.storage,config.timee)

end
return true
end [/LUA]
A reszte rozkmin sam, funkcja toporna ale robi swoja robote :)
 

Frosbite

Active User
Joined
Dec 20, 2014
Messages
99
Reaction score
8
Odp: Pioruny source w Wodbo

W tym silniku masz kod w globalevents>scripts>efekty.lua
Na dole pod ostatnim :
[LUA] elseif(getPlayerVocation(pid) == 285) then
playerpos = getPlayerPosition(pid)
doSendMagicEffect(playerpos, 4)[/LUA]
Dodaj to samo jednak z w?asnymi danymi nowej prof/voc:
[LUA] elseif(getPlayerVocation(pid) == ID VOCATIONS) then
playerpos = getPlayerPosition(pid)
doSendMagicEffect(playerpos, ID EFEKTU)[/LUA]


ID VOCATIONS - id voc z vocations.xml, tej nowej.
ID EFEKTU - id efektu kt?ry doda?e? sam. Pami?taj ?e id efektu dodaje si? zawsze o warto?? wy?ej, np je?eli efekt w cliencie ma id 10. to w skrypcie napisz 9 < Je?eli si? myl? z kolejno?ci? to sorki, nie pami?tam do ko?ca ju? jak to lecia?o.
Pozdrawiam.
 
Top