PDA

View Full Version : Wanted!



Inspire
12-09-2009, 06:15 PM
Still not so great at the lich stuff.

I want a script that will keep any creatures in a room stunned. If the character enters a room with an active creature, I'd like it to stun it, and then wait/watch. If another creature enters the room, I'd like it to stun that one and then wait/watch. Having it check mana would be nice as well.

Any help?

Thanks!

deadly
12-09-2009, 06:38 PM
i second this script. would be nice when im power hutning my newbies.

SpiffyJr
12-09-2009, 06:40 PM
loop {
waitfor "critter arrived"
fput "cast critter" if checkmana(6)
}

Inspire
12-09-2009, 06:59 PM
What if there are 4 creatures already in the room. I'd like one that cycles through each one, stunning each.

I was thinking

ifcreature=stunned do nothing, but check to see if there are any other unstunned creatures, if yes, stun them, repeat, or watch/wait.

SpiffyJr
12-09-2009, 07:19 PM
loop {
sleep 1
GameObj.npcs.each { |npc|
if npc.status !~ /^(?:stunned|dead)$/
fput ("cast blah blah at #{npc.id}") if checkmana(blahblah)
end
}
}

Inspire
12-09-2009, 07:58 PM
loop {
sleep 1
GameObj.npcs.each { |npc|
if npc.status !~ /^(?:stunned|dead)$/
fput ("cast blah blah at #{npc.id}") if checkmana(blahblah)
end
}
}


Thanks! Now the game just needs to come back up.