mIRC Home    About    Download    Register    News    Help

Print Thread
!Command [TwitchBot] #255662 12/11/15 08:28 AM
Joined: Nov 2015
Posts: 1
S
Spectral Offline OP
Mostly harmless
OP Offline
Mostly harmless
S
Joined: Nov 2015
Posts: 1
So this is pretty much my 2nd project, the first of which being a script for a game called CyberNations. This one, is for a game called Ark, only it's intended to be used via a twitch IRC bot. Unfortunately, there's an error somewhere and I can't find where it is. If someone could help me out I'd really appreciate it.

Code:
on *:text:*!tametime Stego*:#: { if ($$4==berry){ msg $chan $calc((173+$$3*(173+($$3-1))/1) Minutes}
  else { msg $chan $calc((173+$$3*(173+($$3-1))/5)) Minutes }

  on *:text:!tametime Ankylo :#: { if (($$4== berry){ msg $chan $calc(94+$$3*(94+($$3-1))/1) Minutes}
    else { msg $chan $calc(((94+$$3*(94+($$3-1))/5)) Minutes }

    on *:text:!tametime bronto :#: {if ( $$4==berry){ msg $chan $calc((126+$$3*(126+($$3-1))/1) Minutes}
  else {msg $chan $calc(((126+$$3*(126+($$3-1))/5))) Minutes  }

  on *:text:!tametime turtle :#: {if ( $$4==berry) { msg $chan $calc((126+$$3*(126+($$3-1))/1) Minutes}
  else {msg $chan $calc(((126+$$3*(126+($$3-1))/5))) Minutes }

  on *:text:!tametime parasaur :#: { if ($$4==berry){ msg $chan $calc((3+$$3*(3+($$3-1))/1) Minutes}
    else { halt }

    on *:text:!tametime doed :#: {if ($$4==berry) { msg $chan $calc((125+$$3*(125+($$3-1))/1) Minutes}
      else { msg $chan $calc(((125+$$3*(125+($$3-1))/5)) Minutes}

        on *:text:!tametime Giganto :#: {if ($$4==berry){ msg $chan $calc(16+$$3*(16+($$3-1))/1) Minutes}
        else { msg $chan ((16+$$3*(16+($$3-1))/5) Minutes }

        on *:text:!tametime mammoth :#: {if ($$4==berry){ msg $chan $calc((110+$$3*(110+($$3-1))/1) Minutes}
        else { msg $chan $calc(((110+$$3*(110+($$3-1))/5)) Minutes }

        on *:text:!tametime Elk :#: {if ($$4==berry){ msg $chan $calc((31+$$3*(31+($$3-1))/1) Minutes}
        else { msg $chan $calc(((31+$$3*(31+($$3-1))/5)) Minutes}

          on *:text:!tametime Monkey :#: {if ($$4==berry){ msg $chan $calc((2+$$3*(2+($$3-1))/1) Minutes}
          else { msg $chan $calc(((2+$$3*(2+($$3-1))/5)) Minutes}

            on *:text:!tametime Pachy :#: {if ($$4==berry){ msg $chan $calc((21+$$3*(21+($$3-1))/1) Mintues}
            else { msg $chan $calc(((21+$$3*(21+($$3-1))/5)) Minutes}

              on *:text:!tametime Paracer :#: {if ($$4==berry){ msg $chan $calc((99+$$3*(99+($$3-1))/1) Minutes}
              else { msg $chan $calc(((99+$$3*(99+($$3-1))/5) Minutes}

                on *:text:!tametime Phiomia :#: {if ($$4==berry){ msg $chan $calc((10+$$3*(10+($$3-1))/1) Minutes}
                else { halt }

                on *:text:!tametime dilo :#: {if ($$4==meat || $$4==raw meat){ msg $chan $calc((10+$$3*(10+($$3-1))/1) Minutes}
                else ($$4 == prime || $$4 == prime meat) { msg $chan $calc((10+$$3*(10+($$3-1))/3) Minutes}

                  on *:text:!tametime dimo :#: {if ($$4==meat || $$4==raw meat){ msg $chan $calc((10+$$3*(10+($$3-1))/1) Minutes}
                  else ($$4==prime || $$4==prime meat) { msg $chan $calc((10+$$3*(10+($$3-1))/3) Minutes.}

                    on *:text:!tametime raptor :#: {if ( $$4 == meat || $$4 == raw meat){ msg $chan $calc((21+$$3*(21+($$3-1))/1) Minutes}
                    elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((21 + $$3*(21+($$3-1))/3) Minutes}
                      else { msg $chan $calc((21+$$3*(21+($$3-1))/5)) Minutes}

                        on *:text:!tametime Argent :#: {if ( $$4 == meat || $$4 == raw meat){ msg $chan $calc((94+$$3*(94+($$3-1))/1) Minutes}
                        elseif ($$4 == prime || $$4 == prime meat) { msg $chan $Calc((94+$$3*(94+($$3-1))/3) Minutes}
                          else { msg $chan $calc((94+$$3*(94+($$3-1))/5) Minutes}

                            on *:text:!tametime Frog :#: {if ( $$4 == meat || $$4 == raw meat){ msg $chan $calc((25+$$3*(25+($$3-1))/1) Minutes}
                            elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((25+$$3*(25+($$3-1))/3) Minutes }
                            else { msg $chan $calc((25+$$3*(25+($$3-1))/5) Minutes}

                              on *:text:!tametime Carno :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((94+$$3 *(94+($$3-1))/1) Minutes}
                              elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((94+$$3*(94+($$3-1))/3) Minutes}
                                else { msg $chan $calc(((94+$$3*(94+($$3-1))/5)) Minutes }

                                on *:text:!tametime wolf :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((48+$$3*(48+($$3-1))/1) Minutes}
                                elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((48+$$3*(48+($$3-1))/3) Minutes}
                                  else { msg $chan $calc((48+$$3*(48+($$3-1))/5))) Minutes}

                                    on *:text:!tametime Icthy :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((3+$$3*(3+($$3-1))/1)) Minutes}
                                    elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((3+$$3*(3+($$3-1))/3) Minutes}
                                      else { msg $chan $calc((3+$$3*(3+($$3-1))/5) Minutes}

                                        on *:text:!tametime Megladon :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((94+$$3*(94+($$3-1))/1) Minutes}
                                        elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((94+$$3*(94+($$3-1))/3) Minutes}
                                          else { msg $chan $calc(((94+$$3*(94+($$3-1))/5)) Minutes}

                                            on *:text:!tametime Mosa :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc(214+$$3*(214+($$3-1))/1) Minutes}
                                            elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((214+$$3*(214+($$3-1))/3) Minutes}
                                              else { msg $chan $calc((214+$$3*(214+($$3-1))/5)) Minutes}

                                                on *:text:!tametime Plesi :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((126+$$3*(126+($$3-1))/1) Minutes}
                                                elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((126+$$3*(126+($$3-1))/3) Minutes}
                                                  else { msg $chan $calc((126+$$3*(126+($$3-1))/5)) Minutes}

                                                    on *:text:!tametime Pterandon :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((65+$$3*(65+($$3-1))/1) Minutes}
                                                    elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((65+$$3*(65+($$3-1))/3) Minutes}
                                                      else { msg $chan $calc((65+$$3*(65+($$3-1))/5)) Minutes}

                                                        on *:text:!tametime Quetz :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((243+$$3*(243+($$3-1))/1) Minutes}
                                                        elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((243+$$3*(243+($$3-1))/3) Minutes}
                                                          else { msg $chan $calc((243+$$3*(243+($$3-1))/5)) Minutes}

                                                            on *:text:!tametime Rex :#: {if ( $$4==meat || $$4==raw meat){ msg $chan (144+$$3*(144+($$3-1))/1}
                                                            elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((144+$$3*(144+($$3-1))/3) Minutes}
                                                              else { msg $chan $calc(((144+$$3*(144+($$3-1))/5)) Minutes Rex kibble uses 1 scorpion egg, 1 longrass, 1 prime meat jerky, 2 mejos, 3 fiber, and 1 waterskin. }

                                                              on *:text:!tametime Saber :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((48+$$3*(48+($$3-1))/1) Minutes}
                                                              elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((48+$$3*(48+($$3-1))/3) Minutes }
                                                              else { msg $chan $calc((48+$$3*(48+($$3-1))/5) Minutes}

                                                                on *:text:!tametime Sarco :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc(105+$$3*(105+($$3-1))/1) Minutes}
                                                                elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((105+$$3*(105+($$3-1))/3) Minutes}
                                                                  else { msg $chan $calc((105+$$3*(105+($$3-1))/5)) Minutes}

                                                                    on *:text:!tametime Scorpion :#: {if ( $$4==meat || $$4==raw meat){ msg $chan (16+$$3*(16+($$3-1))/1 Scorpions have no kibble, use spoiled meat}
                                                                    else ($$4 == prime || $$4 == prime meat) { msg $chan $calc((16+$$3*(16+($$3-1))/3) Minutes}

                                                                      on *:text:!tametime Spino :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((180+$$3*(180+($$3-1))/1) Mintues}
                                                                      elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((180+$$3*(180+($$3-1))/3) Minutes}
                                                                        else { msg $chan $calc((180+$$3*(180+($$3-1))/5)) Minutes}Spinosaur kibble uses 1 argent egg, 1 citronal, 1 prime meat jerky, 2 mejos, 3 fiber, and 1 waterskin. }

                                                                        on *:text:!tametime Gigan :#: {if ( $$4==meat || $$4==raw meat){ msg $chan $calc((222+$$3*(222+($$3-1))/1) Minutes}
                                                                        elseif ($$4 == prime || $$4 == prime meat) { msg $chan $calc((222+$$3*(222+($$3-1))/3) minutes}
                                                                          else { msg $chan $calc((222+$$3*(222+($$3-1))/5)) Minutes}




Syntax: on *:text:!tametime <dino> :#: {if ( $$4==meat || $$4==raw meat) msg $chan (<Base tame level>+$$3*(<base tame leve>+< ($$3-1))|  Dino level progression>/<1| Food taming factor}

Prefered Kibble: x5 speed | 80 food
Raw Prime: x3 speed | 50 food
Spoiled Meat: 2x speed | 50 food
Cooked prime/prime meat jerky: 1.5x speed | food 50
Raw Meat: 1x speed | food 50
Cooked Meat/Cooked Meat: 1x speed | food 35
Advanced Crops: 1x speed | food 40
Mejo: 1x speed | food 30
Other Berries: 1x speed | food 20
Other Kibble: .66x speed | food 80


on *:text:!help tt :#: { msg $chan Type !tametime <dino> <level> <Prime/rawmeat/berry> }

taming time = dino lvl 1 taming time + (Dino level - 1)(Increase taming time per level)
(Base_Time + Creature_Level * Time_Added_Per_Level) / Food_Taming_Factor

	

Re: !Command [TwitchBot] [Re: Spectral] #255668 12/11/15 03:41 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Try to fix your hole code by using this example of the correct code:

Code:
on *:text:!tametime Stego:#: {
  if ($$4 == berry) { msg $chan $calc(173 + $$3 * 173 + $$3 - 1 / 1) Minutes }
  else { msg $chan $calc(173 + $$3 * 173 + $$3 - 1 / 5) Minutes }
}


/help $calc