PDA

View Full Version : I too was disarmed and taken advantage of...



nichelas
10-17-2011, 04:25 PM
Anyone have a script that will immediately pick up a weapon if disarmed?

Figure there is probably one out there, just not seeing it

Jace Solo
10-17-2011, 04:49 PM
Would also be interested in this one

subzero
10-17-2011, 06:17 PM
I was gonna work on one and incorporate spirit servant and minor demons, but then I ended up afking past mino warriors and went to the bowels.

Jace Solo
10-17-2011, 06:34 PM
lol, do it! Spirit Servant!

Joseph
10-18-2011, 02:04 PM
I don't have my old scripts available on this computer.. maybe this will give you some ideas though.


if Char.name =~ /Laa/
put get my falchion
end

until Gameobj.righthand.noun != 'empty'
end
myweap = Gameobj.righthand.id

while scriptrunning?('hunting.lic')
while Gameobj.righthand.id != myweap
loop{send_to_script(crosscharcom,'wall put get ' + myweap.to_s,);send_to_script(crosscharcom, 'wall put give ' Char.name}
end

Drunken Durfin
10-18-2011, 02:26 PM
Writing one now that will work for weapon/shield and items. I am going to have it deal with disarms as well as dropping weapons and stuff from itchy curse and the like. I've got a couple of really nice items in Shattered that I don't want to chance losing while using them AFK (gem eater for instance). Should have something up for beta later today.

nichelas
10-18-2011, 03:13 PM
Thanks Durfin.

Drew
10-18-2011, 03:16 PM
If you don't mind Durfin I'd appreciate it if it could grab two weapons.

Drunken Durfin
10-18-2011, 05:16 PM
Should not be a problem to do two weapons, as it is was already going to look for a weapon and shield.

Jace Solo
10-18-2011, 07:32 PM
I take it if it'll work with TWC it'll work just fine with THW as well.
Thanks Durfin

Yonaton
10-20-2011, 08:18 AM
Thanks for doing this, Durfin. What'll you name it, so we know what to look for?

Drunken Durfin
10-20-2011, 01:11 PM
Still messing around with it, having some unforseen issues. Things are never as easy as you think they will be.

The working title is iKeeper right now, will most likely change. I'll post here when the beta is up.

Is itchy curse the only curse that causes you to drop weapons/shields/items?

DaCapn
10-20-2011, 01:17 PM
I added some friendly stuff to the beginning of my undisarm script. It should run continuously and grab your weapon/shield off the ground no matter what happens (see below).

I'd like to see what Durfin comes up with and combine ideas. Does itchy curse have a spell number? If so, you'd want to add a stow exception, right? I really don't ever get disarmed so I don't have many practicalities in mind here.



if variable[0] =~ /set/i
echo "### Type the following:"
if checkright then echo "### ;settings add weapon #{GameObj.right_hand.name}"; end
if checkleft then echo "### ;settings add shield #{GameObj.left_hand.name}"; end
exit
end

if variable[0] =~ /help/i
echo "### Get out your weapon and shield and run:"
echo "### ;undisarm set"
exit
end

if !Lich.weapon and !Lich.shield
echo "### Weapon and/or shield not set"; exit
end

loop{
if Lich.weapon and Lich.shield
wait_until { GameObj.loot.find{ |obj| obj.name =~ /#{Lich.weapon}/ or obj.name =~ /#{Lich.shield}/ } }
elsif Lich.weapon
wait_until { GameObj.loot.find{ |obj| obj.name =~ /#{Lich.weapon}/ } }
elsif Lich.shield
wait_until { GameObj.loot.find{ |obj| obj.name =~ /#{Lich.shield}/ } }
end
if running?"go2" then stop_script "go2"; end
echo "########## DISARMED!!! ##########"
if Lich.weapon
weapon = GameObj.loot.find{|obj| obj.name =~ /#{Lich.weapon}/ }
fput "take ##{weapon.id}"
end
if Lich.shield
shield = GameObj.loot.find{|obj| obj.name =~ /#{Lich.shield}/ }
fput "take ##{shield.id}"
end
}




--- Lich: undisarm active.
>drop bow
You drop a lacquered sephwir recurve bow inlaid with interlacing ivory laurel branches.
>[undisarm: ########## DISARMED!!! ##########]
[undisarm]>take #124241082
>You pick up a lacquered sephwir recurve bow inlaid with interlacing ivory laurel branches.

subzero
10-20-2011, 03:18 PM
Is itchy curse the only curse that causes you to drop weapons/shields/items?

Yes. As to the question of it having a particular number, no, it should just be 715. It would be kinda nifty if there were individual identifiers for the different curses, but there's no point in even trying to do that until the curse changes roll in.

Drunken Durfin
10-20-2011, 04:39 PM
I don't think that Curse is tracked by ;magic, so having the number won't really help. I'm just going to go off of the messaging for the spell.

Jace Solo
10-20-2011, 04:56 PM
Perhaps you'd wanna add something to for weapon fire? If you have a disk it places the weapon in the disk and draws a secondary (if you have one)?

You can just call it ;isurvivedweapondeath

Drunken Durfin
10-20-2011, 07:55 PM
I already have a tried and true weapon fire script, ohshit.lic, that I have been using for a while. I'll put the code into this one as well.

There will be a GUI to set all of these options:



Shield
Weapon
Second Weapon (for TWC weirdos)
Backup Weapon (in case critter gets your primary)
Item (if you hunt with something other than a weapon/runestaff/sheild...like a musical instrument)
Scream on Lnet (Halp! I lost my weapon in room # to X critter)
Fuck, I'm cursed. (stows weapon(s)/shield and runs to town)
Fuck, Weapon fire (disk weapon if disk present, run to town)

The current incarnation will pause ALL scripts, grab weapon from the ground, unpause all scripts for standard disarm. If Curse messaging is encountered, run to town and stow weapon/shield on the way (waits a few seconds so you don't stow both in hunting area and get le dead).

I am trying to figure the best way to deal with you getting disarmed and before you come out of RT a critter picks up your weapon/runestaff. I think that the best option here will be to set a secondary weapon to ready and attack with until you get your primary back. This will require a lot of testing, and you to have a secondary weapon of course.

Bhaalizmo
10-20-2011, 08:17 PM
A noble script endeavor sir. I look forward to utilizing it.


There will be a GUI to set all of these options:



Shield
Weapon
Second Weapon (for TWC weirdos)
Backup Weapon (in case critter gets your primary)
Item (if you hunt with something other than a weapon/runestaff/sheild...like a musical instrument)
Scream on Lnet (Halp! I lost my weapon in room # to X critter)
Fuck, I'm cursed. (stows weapon(s)/shield and runs to town)
Fuck, Weapon fire (disk weapon if disk present, run to town)

nichelas
10-20-2011, 08:46 PM
Durfin - your the best.

Drunken Durfin
10-20-2011, 09:19 PM
Durfin - your the best.

Let's make sure I can pull this off first ;-)

Hey, TWC users, when you get hit with weapon fire is it always the weapon in your right hand? Can it hit both with one cast?

Bhaalizmo
10-20-2011, 09:24 PM
I volunteer to cast weapon fire at a TWC. Any TWC volunteers?

Drunken Durfin
10-23-2011, 03:24 PM
http://drunkendurfin.webs.com/iStickyHands.png

Not on the repo yet, but it is getting close. With my current schedule it looks like I'm not going to make it to v1.0 Repo release until next weekend. Sorry folks, please be patient.

Gizmo
10-23-2011, 04:18 PM
http://drunkendurfin.webs.com/iStickyHands.png

Not on the repo yet, but it is getting close. With my current schedule it looks like I'm not going to make it to v1.0 Repo release until next weekend. Sorry folks, please be patient.

Looks Awesome Durf

Jace Solo
10-23-2011, 04:24 PM
Ya dude, rep coming!

nichelas
10-23-2011, 07:24 PM
Damned fine work. looking forward to this.

Drunken Durfin
10-24-2011, 12:05 AM
Looks Awesome Durf

I stole Casis' text box code...but he stole my window code...but I stole that from...damn.

Lich code is a vicious circle of theft.

Bhaalizmo
10-25-2011, 12:27 PM
http://drunkendurfin.webs.com/iStickyHands.png


It's purdy.

Jace Solo
10-25-2011, 02:11 PM
Very!

Musicalia
10-25-2011, 03:22 PM
(retrieved)

BTW, Durfin, did you ever play Inferno?

Drunken Durfin
10-25-2011, 05:16 PM
(retrieved)

BTW, Durfin, did you ever play Inferno?

Nope. Never heard of it until now. Looks interesting.

tallkris3
10-27-2011, 12:16 PM
Random thought is to account for warriors that are bonded to a weapon that auto returns.

I'd like to use this in the event I drop my shield (When using my bonded weapon and both weapon and sheild when using a different weapon), if I'm bonded to a weapon it's going to jump back into my hand automatically in most cases, just hoping the script isn't going to error out when that happens.

Just a thought.

Drunken Durfin
10-27-2011, 04:46 PM
... just hoping the script isn't going to error out when that happens.

Just a thought.

I'll try and not be insulted by this.

Bhaalizmo
10-31-2011, 05:18 PM
I'll try and not be insulted by this.

How's that working out?

Oh and how's the script coming?

tallkris3
11-04-2011, 02:37 PM
I'll try and not be insulted by this.

I was trying to be anything but insulting. So if you took any offense to my post I apoligize, that was not my intent.

I was just trying to point out a random scenario that may rarely occur that might cause issues with the script. Even the some of the best scripts out there run into the occasional issue handling a rare occurance.

So once again, if I insulted you, I'm sorry.

nichelas
11-26-2011, 10:13 PM
Durfin - any luck on this?

subzero
11-26-2011, 11:52 PM
Wouldn't count on it any time soon. He quit during EG.

nichelas
11-27-2011, 05:24 PM
Really?

subzero
11-27-2011, 06:10 PM
No, I just like to post nonsensical shit for fun.

DaCapn
11-27-2011, 08:24 PM
No, I just like to post nonsensical shit for fun.

You can find some of his other work here:
http://forum.gsplayers.com/showpost.php?p=1352799&postcount=154