ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Quagmire on July 30, 2008, 02:09:14 PM

Title: Bod login
Post by: Quagmire on July 30, 2008, 02:09:14 PM
hey guys just trying get get my bod script done all done expect change char:
heres the issue i made menu check boxes for each char slot so i use a for loop to grab the account menu info
and now i have to set say %char ( this is the main character slot var) to the char that hasn't been on yet and make sure the box is true
urgg little rusty on for loops when setting vars maybe i am just forgetting something stupid or just cant code. (lol i hope its the first option) i could do it a long way but i want to use for loops to make it fast and less coding any criticizing will be great! (made notes in code!)
Code: [Select]
;its called by
set %char_checks aco ;== account one
gosub get_checks %char_checks
gosub save_checks %char_checks
;--------------------------------
;    get savechecks => getting char ids that are checkd
;----------------------------------
sub save_checks
  set %done_checks 0
  for %u 1 5
  {
    if %done_checks = 5
    {
      gosub changechar_
      break
    }
    if %tlot , %u = #false
      set %done_checks %done_checks + 1
    if %tlot , %u = #true
    {
      set %char %slot , %u ; now want it to set %char = %slot1
      set %tlot , %u = #false ; now want it to set %tlot1 = false
    }
  }
return

;--------------------------------
;     get Checks
;----------------------------------
sub get_checks
  for %i 1 4
  {
    menu get %1 , %i
    set %charid #menures ; it gets the boxes just fine
    if %charid = #true
    {
      set %slot , %i %i ;heres the issue and %slot1 = %i
      set %tlot , %i #true ; heres the issue = want it to set %tlot1 = true
     
    }
  }
return

return
Title: Re: Bod login
Post by: Quagmire on July 30, 2008, 07:57:49 PM
lol PERIOD WAS IN THE WRONG PLACE!!  Burgers is the man.!!