Próbowałem napisać skrypt ale nic się nie dzieje Skrypt jest pod TFS 1.2 (10.90) jestem w tym nowicjusz straszny od razu mowie
Skrypt wygląda tak :
Mógł by ktoś to naprawić i napisać z wyjaśnieniem dla czego tak ma być był bym wdzięczny :)
Skrypt wygląda tak :
Kod Lua:
- local config =
- {
- [2] = {x = {
- efe= 2,
- hp= 25,
- mn= 12,
- efesum= 2
- }
- },
- [31] = {x = {
- efe= 14,
- hp= 30,
- mn= 20,
- efesum= 16
- }
- },
- }
-
- function onThink(cid, interval)
- summon = config[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType]
-
- if creature:isPlayer() then
- creature:getPosition():sendMagicEffect(summon.x.ef e)
- creature:addHealth(summon.x.hp)
- creature:addMana(summon.x.mn)
- player:addManaSpent(player:getVocation():getRequir edManaSpent(player:getBaseMagicLevel() + summon.x.mp) - player:getManaSpent())
- local summons = creature:getSummons()
- for i = 1, #summons do
- summons[i]:getPosition():sendMagicEffect(summon.x.efesum)
- end
- end
- return true
- end
Mógł by ktoś to naprawić i napisać z wyjaśnieniem dla czego tak ma być był bym wdzięczny :)