- Dołączył
- Kwiecień 20, 2011
- Posty
- 342
- Liczba reakcji
- 4
Witajcie a mianowicie mam taki skrypcik transform dzia?a i wgl tfs 8.6
[LUA]local tabela = {
------------Bardock--------------------
[7] = {outfit = {lookType=218}, level = 30, effectTrans = 226},
[8] = {outfit = {lookType=248}, level = 50, effectTrans = 224},
[9] = {outfit = {lookType=231}, level = 100, effectTrans = 227},
[10] = {outfit = {lookType=284}, level = 150, effectTrans = 225},
[11] = {outfit = {lookType=78}, level = 200, effectTrans = 223},
}
function onCastSpell(cid, var)
local arr = tabela[getPlayerVocation(cid)]
if(arr ~= NULL) then
if getPlayerLevel(cid) >= arr.level then
doPlayerSetVocation(cid, getPlayerVocation(cid)+1)
doSetCreatureOutfit(cid, arr.outfit, -1)
doSendMagicEffect(getPlayerPosition(cid), arr.effectTrans)
else
doPlayerSendCancel(cid, "You need " .. arr.level .. " level to transform.")
end
else
doPlayerSendCancel(cid, "Nie masz Reborn.")
end
return true
end[/LUA]
to wy?ej to z spells
to ni?ej z login
[LUA]local bardock = {lookType = 222, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------Bardock--------------
if (getPlayerVocation(cid) == 8) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 9) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 10) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 11) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 12) then
doSetCreatureOutfit(cid, bardock, -1)
end
------------------------End Bardock----------------------
---------------Vocation------------
------------Bardock------------
if (getPlayerVocation(cid) == 8) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 9) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 10) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 11) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 12) then
doPlayerSetVocation(cid,7)
end
------------------------End Bardock----------------------
[/LUA]
a wi?c tak nie wiem jak lub czy wgl sie da ?e 1 trans daje np 500 manny/hp
2 daje 1000
3 daje 4000
itd...
i gdy np mamy ju? max transa lub nie, wylogujemy si? odejmuje nam to wszystko co nam doda?o za pomoc rep+ je?li co? nie jasne pisa? z g?ry thx
---------- Tre?? dodana o 02:54 ----------
http://tibia.net.pl/threads/524028-8-54-Transform
znalaz?em taki skrypt ale te? niema opcji na odejmowanie manny hp po logu przerobi kto? umiej?tny ?
[LUA]local tabela = {
------------Bardock--------------------
[7] = {outfit = {lookType=218}, level = 30, effectTrans = 226},
[8] = {outfit = {lookType=248}, level = 50, effectTrans = 224},
[9] = {outfit = {lookType=231}, level = 100, effectTrans = 227},
[10] = {outfit = {lookType=284}, level = 150, effectTrans = 225},
[11] = {outfit = {lookType=78}, level = 200, effectTrans = 223},
}
function onCastSpell(cid, var)
local arr = tabela[getPlayerVocation(cid)]
if(arr ~= NULL) then
if getPlayerLevel(cid) >= arr.level then
doPlayerSetVocation(cid, getPlayerVocation(cid)+1)
doSetCreatureOutfit(cid, arr.outfit, -1)
doSendMagicEffect(getPlayerPosition(cid), arr.effectTrans)
else
doPlayerSendCancel(cid, "You need " .. arr.level .. " level to transform.")
end
else
doPlayerSendCancel(cid, "Nie masz Reborn.")
end
return true
end[/LUA]
to wy?ej to z spells
to ni?ej z login
[LUA]local bardock = {lookType = 222, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------Bardock--------------
if (getPlayerVocation(cid) == 8) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 9) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 10) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 11) then
doSetCreatureOutfit(cid, bardock, -1)
end
if (getPlayerVocation(cid) == 12) then
doSetCreatureOutfit(cid, bardock, -1)
end
------------------------End Bardock----------------------
---------------Vocation------------
------------Bardock------------
if (getPlayerVocation(cid) == 8) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 9) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 10) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 11) then
doPlayerSetVocation(cid,7)
end
if (getPlayerVocation(cid) == 12) then
doPlayerSetVocation(cid,7)
end
------------------------End Bardock----------------------
[/LUA]
a wi?c tak nie wiem jak lub czy wgl sie da ?e 1 trans daje np 500 manny/hp
2 daje 1000
3 daje 4000
itd...
i gdy np mamy ju? max transa lub nie, wylogujemy si? odejmuje nam to wszystko co nam doda?o za pomoc rep+ je?li co? nie jasne pisa? z g?ry thx
---------- Tre?? dodana o 02:54 ----------
http://tibia.net.pl/threads/524028-8-54-Transform
znalaz?em taki skrypt ale te? niema opcji na odejmowanie manny hp po logu przerobi kto? umiej?tny ?



i m?wi? tak dalej dupa :[ 0 b??d?w dodaje nie ubiera i mog? mie? nie sko?czono?? do puki silnik si? nie zbuguje :]