Yoko

All sides of Injection
It is currently 2024-04-18 06:42:53

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: auto-inscription problem
PostPosted: 2004-04-30 14:16:52 
Offline

Joined: 2004-04-16 19:24:29
Posts: 18
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:
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)


Top
   
 Post subject:
PostPosted: 2004-05-01 12:05:32 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
slow down means you have empty short cycle somewhere without delay

in part you wrote there is no cycles so may not be slowdowns


Top
   
 Post subject:
PostPosted: 2004-05-02 19:51:35 
Offline

Joined: 2004-04-16 19:24:29
Posts: 18
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?


Top
   
 Post subject:
PostPosted: 2004-05-02 23:20:16 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited