• Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Ronit.GAMES RonEngine Support / Wsparcie dla RonEngine LUA/XML Scripting / Skryptowanie LUA/XML Błąd gdy potwór używa exury

 
  • 0 Vote(s) - 0 Average
Błąd gdy potwór używa exury
kretonus
Offline

Project Owner
Posts: 17
Threads: 7
Joined: Jun 2011
Reputation: 0
#1
08-08-2012, 01:32 PM
Zawsze gdy potwór użyje exury przy walce silnik się wyłącza a gra stoi.
Tutaj ss z silnika
http://img194.imageshack.us/img194/8039/bladsilnik.jpg
Ron
Offline

Administrator

Posts: 54
Threads: 29
Joined: Jun 2010
Reputation: 3
#2
09-08-2012, 12:01 AM (This post was last modified: 09-08-2012, 12:01 AM by Ron.)
Witam,

Masz błąd w skrypcie LUA, która crashuje serwer.

Czy twój skrypt 'exura.lua' wygląda tak?

Quote:attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE

hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_ENERGIE
animationColor = GREEN
offensive = false
drawblood = false

LightHealingObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)

function onCast(cid, creaturePos, level, maglv, var, spellid)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
n = tonumber(var) -- try to convert it to a number
if n ~= nil then
LightHealingObject.minDmg = 0
LightHealingObject.maxDmg = 0
else
LightHealingObject.minDmg = 15+(level * 2 + maglv * 3) * 0.10
LightHealingObject.maxDmg = 15+(level * 2 + maglv * 3) * 0.27
end
return doTargetMagic(cid, centerpos, LightHealingObject:ordered())
end
kretonus
Offline

Project Owner
Posts: 17
Threads: 7
Joined: Jun 2011
Reputation: 0
#3
09-08-2012, 02:55 PM (This post was last modified: 12-08-2012, 10:56 PM by kretonus.)
Skrypt mam taki sam. Zauważyłem, że silnik wywala przy użyciu KAŻDEGO czaru.

//Dobra sam sobie naprawiłem.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode