Author Topic: Bod login  (Read 2920 times)

0 Members and 1 Guest are viewing this topic.

Offline QuagmireTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 1
  • Quagmire has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Bod login
« on: July 30, 2008, 02:09:14 PM »
0
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

Offline QuagmireTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 1
  • Quagmire has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Bod login
« Reply #1 on: July 30, 2008, 07:57:49 PM »
0
lol PERIOD WAS IN THE WRONG PLACE!!  Burgers is the man.!!

Tags: