auto-inscription problem

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
hunt3r
Posts: 18
Joined: 2004-04-16 19:24:29

auto-inscription problem

Post by hunt3r »

when i uses this part of script, my uo turns SOOOOO slow and dont run the next part of script... someone see something wrong whit this script?

Code: Select all

var circulo=3
      var magia='Bless'
      var manareq=9
      var si=uo.skillval("Inscription")
      if si < 450 then
        circulo=3
        magia='Bless'
        manareq=9
      else
      if si < 550 then
        circulo=4
        magia='Recall'
        manareq=11
      else
      if si < 650 then
        circulo=5
        magia='Paralyze'
        manareq=14
      else
      if si < 750 then
        circulo=6
        magia='Energy Bolt'
        manareq=20
      else
      if si < 850 then
        circulo=7
        magia='Flame Strike'
        manareq=40
      else
        circulo=8
        magia='Summon Daemon'
        manareq=50
      end if
      uo.print("Circulo: "+str(circulo)+" Magia:"+magia)
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

slow down means you have empty short cycle somewhere without delay

in part you wrote there is no cycles so may not be slowdowns
hunt3r
Posts: 18
Joined: 2004-04-16 19:24:29

Post by hunt3r »

Thx yoko, but i cant solve the trouble!
i just, and ONLY use this part of script and it make my uo slowdown...
if this havent cycles, how can it may my uo slow?
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

try first envelope this and only this fragment in SUB / END SUB and launch separately

if it sure slow down try do not use so many else - change them to END IF and make checkups in reverse order
Post Reply