All pastes #369526 Raw Edit

dd

public text v1 · immutable
#369526 ·published 2007-02-23 22:07 UTC
rendered paste body
Will this work?


on *:text:!kill Dustdevil*:#RuneScapeLife:{ if (!$($+(%,$nick),2)) notice $nick You do not have an account! Type !create to make one.
  else { if ($($+(%,$nick,.CombatXP),2) < 20000) notice $nick You do not have enough Combat experience to kill Dust Devils. (20000 Combat Experience minimum.)
    else { if ($($+(%,$nick,.busy),2) == On) notice $nick You have to wait until you can kill another Dust Devil!
      else { notice $nick You go to kill a Dust Devil...
        set % $+ $nick $+ .dd.coins $rand(0,1000)
        set % $+ $nick $+ .dd.mithplates $rand(0,1)
        timer 1 5 notice $nick You returned with $($+(%,$nick,.dd.coins),2) coins and $($+(%,$nick,.dd.mithplates),2) Mithril Plates! These have been added to your stash.
        inc % $+ $nick $+ .Coins $($+(%,$nick,.dd.coins),2)
        inc % $+ $nick $+ .mithplates $($+(%,$nick,.dd.mithplates),2)
        inc % $+ $nick $+ .CombatXP 400
        inc % $+ $nick $+ .bones 1
        unset % $+ $nick $+ .dd.coins
        unset % $+ $nick $+ .dd.mithplates
        set % $+ $nick $+ .busy On
        timer 1 10 unset % $+ $nick $+ .busy
        /dchaindd $nick
        /dspeardd $nick
      }
    }
  }
}


I also added the alias for the dspear.



alias dspeardd { set % $+ $1 $+ .dspeardrop $rand(1,1000)
  if ($($+(%,$1,.dspeardrop),2) > 1) halt
  else { notice $1 =O Congratulations on the Dragon Spear! YEAH!
    inc % $+ $1 $+ .dspears 1
    msg $chan 2 $+ $1 14has found a 4DRAGON SPEAR!!! 14Good job my friend2 $1 $+ 14, you've done the impossible...
    unset % $+ $1 $+ .dspeardrop
  }
}