Max_Riokuoni

Max_Riokuoni

Joined
Jan 26, 2008

Activity Stream

Max_Riokuoni created a Page  -  Mar 17, 2008
372 

Alright, I started working on my Naruto Bot again, and after reformatting my computer, I forgot to save the aliases, so I lost them. Basically, the player files are supposed to write to $mircdir/Naruto/Users, and in .ini form. However, it doesn't write that way.

  1 Thread   mIRC  
Max_Riokuoni commented on a Page, Attacking/Gates Script/Alias for Naruto bot  -  Jan 26, 2008
DeadCheck {
  if ($2 == rpgbot) { goto end }
  if ($2 == chanbot) { goto end }
  if ($rini($2,Stats,Health) <= 0) {
    if ($rini($2,Stats,Entered) != yes) { halt }
    timerattack $+ $2 off
    set %money $rand(30,40)
    set %money2 $rand(5,10)
    set %exp $rini($2,Stats,Level)
    set %Exp $calc(%exp * 4)
    set %exp2 $round($calc(%exp2 * 0.10),0)
    wini $1 $1 Money $calc($rini($1,Stats,Money) + %Money)
    wini $2 $2 Money $calc($rini($2,Stats,Money) + %Money2)
    wini $1 $1 exp $calc($rini($1,Stats,exp) + %exp)
    wini $2 $2 exp $calc($rini($2,Stats,exp) + %exp2)
    wini $1 $1 wins $calc($rini($1,Stats,Wins) + 1)
    wini $2 $2 wins $calc($rini($1,Stats,Losses) + 1)
    wini $2 $2 Entered no
    wini $2 $2 Attacking no
    set %batlist $remtok($batlist,$2,1,32)
    msg # $1 has defeated $2 $+ ! $1 gains %money yen and %exp exp! $2 gained %money2 yen and %exp2 exp!
    :end 
  }
}
 Respond  
Max_Riokuoni commented on a Page, Attacking/Gates Script/Alias for Naruto bot  -  Jan 26, 2008

jub369: To quote myself: \"(Will be using brackets to separate the two scripts I\'ll be posting, so don\'t think that I added those to the original coding.)\"

 Respond  
Max_Riokuoni commented on a Page, Attacking/Gates Script/Alias for Naruto bot  -  Jan 26, 2008

Actually, I did get most of the coding for that script from Romeo o.o

 Respond  
Max_Riokuoni commented on a Page, Attacking/Gates Script/Alias for Naruto bot  -  Jan 26, 2008

Well, basically what I need help with is the problem that the attack script has (Saying the person is preparing for the attack, but not actually doing the attack) and closing the celestial gates to subtract the stat boosts from each gate.

 Respond  
Max_Riokuoni commented on a Page, Attacking/Gates Script/Alias for Naruto bot  -  Jan 26, 2008

/rini and /wini are substitutes (or short for) $readini and /writeini

 Respond  
Max_Riokuoni created a Page  -  Jan 26, 2008
737 

Alright, I'm currently making a Naruto bot, and I got in a little bit of confusion. Basically the problem with this script is that it will say that the person is preparing to attack, but after the timer is over, the script won't msg the channel that the person actually DID the attack. Nor will it decrease hp or increase exp.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.