Help - Search - Members - Calendar
Full Version: Throwable Ore!
SphereServer Forums > Sphere .55i - Discontinued > ITEM Script Submissions 55i
princess
Feel free to edit LOL

[ITEMDEF i_ore_throwable]
DEFNAME=i_ore_throwable
ID=i_ore_iron
NAME=throwable ore
WEIGHT=1
TYPE=t_weapon_fence
DAM=10,15
SKILL=MINING 60.0
REQSTR=1
TWOHANDS=N


ON=@Create
HITPOINTS={2 5}

ON=@DCLICK
IF (<SRC.mining> > 100.0)
SRC.SYSMESSAGE Whom do you wish to throw this iron ore at?
TARGET
RETURN 1
ELSEIF (<SRC.mining> < 100.0)
SRC.SYSMESSAGE You don't have enough mining skill to use this.
RETURN 1
ENDIF
ENDIF

ON=@TARGON_CHAR
SRC.ANIM 11
SOUND 0145
SRC.TARG.EFFECT=0,0f51,2,1,0
SRC.TARG.HITPOINTS=<SRC.TARG.HITPOINTS>+(-10)
SRC.CONSUME 1 i_ore_throwable
SRC.SYSMESSAGE You have thrown an ore into <SRC.TARG.NAME>.
SRC.TARG.SYSMESSAGE <src.name> threw an iron ore at you.
RETURN 1

ON=@TARGON_SELF
SRC.SYSMESSAGE Why would you throw an iron ore at yourself?
RETURN 1

ON=@TARGON_ITEM
SRC.SYSMESSAGE That isn't a creature.
RETURN 1

ON=@TARGON_GROUND
RETURN 1

CATEGORY=JOYCE ITEMS
SUBSECTION=Blacksmiths
DESCRIPTION=Ore (Small Pile)
uopunk
QUOTE(princess @ Jun 4 2005, 07:55 PM)
ON=@TARGON_SELF
SRC.SYSMESSAGE Why would you throw an iron ore at yourself?
RETURN 1
[right][snapback]150887[/snapback][/right]


lol, Could be retarded?
Bacchus
Why do you need a certain type of ore? (ie Throwable Ore) Shouldn't they all be able to be thrown? Might be nice if you just altered the original scripts so they all could.
princess
QUOTE(Bacchus @ Jun 5 2005, 09:00 AM)
Why do you need a certain type of ore? (ie Throwable Ore) Shouldn't they all be able to be thrown? Might be nice if you just altered the original scripts so they all could.
[right][snapback]150929[/snapback][/right]



That sounds cool biggrin.gif
They can just add the adidtional script on each ore ph34r.gif
GMYoda
no u can't

ON=@DCLICK is used to combine ore or smelt it.

If you wanted you need to add a check for it so if they target ore or a forge it will work normally. I suggest making a item that when u dlick the item and target ore it then asks u where to throw this ore.

That way nothing changes and you don't have to worry about skill conflicts.
Sbou
just do a if at the @dclick

if object = to the burning surface = smelt it
ifelse = brain =0 ( something like that) do the script
etc etc sorry i juste posted a short answer cuz i have to go
Indegon
I modified your throwable ore script into a weapon called a shuriken it basically works the same way as the throwable ore anyway what does everyone think?
CODE

[ITEMDEF i_shuriken]
DEFNAME=i_shuriken
ID=i_dagger
NAME=Shuriken
WEIGHT=1
TYPE=t_weapon_fence
DAM=15,20
SKILL=Fencing 60.0
REQSTR=35
TWOHANDS=N


ON=@Create
HITPOINTS={20 25}

ON=@DCLICK
IF (<SRC.Fencing> > 50.0)
SRC.SYSMESSAGE Who do you want to throw the shuriken at?
TARGET
RETURN 1
ELSEIF (<SRC.Fencing> < 50.0)
SRC.SYSMESSAGE You aren't experienced enough to use this.
RETURN 1
ENDIF
ENDIF

ON=@TARGON_CHAR
SRC.ANIM 11
SOUND 0145
SRC.TARG.EFFECT=0,0f51,2,1,0
SRC.TARG.HITPOINTS=<SRC.TARG.HITPOINTS>+(-15)
SRC.CONSUME 1 i_shuriken
SRC.SYSMESSAGE You have thrown a shuriken at <SRC.TARG.NAME>.
SRC.TARG.SYSMESSAGE <src.name> threw an shuriken at you.
RETURN 1

ON=@TARGON_SELF
SRC.SYSMESSAGE you look the shuriken over, it appears to be fine.
RETURN 1

ON=@TARGON_ITEM
SRC.SYSMESSAGE Why would you waste your shuriken on that?
RETURN 1

ON=@TARGON_GROUND
RETURN 1

CATEGORY=Ninja Items
SUBSECTION=Weapons
DESCRIPTION=Shuriken
Bacchus
Not bad for a simple thing just for kicks but it can be improved.
CODE
SRC.SYSMESSAGE Who do you want to throw the shuriken at?
TARGET
Can be altered into one line by adding the sysmessage after the target command:
CODE
target Who do you want to throw the shuriken at?
I would also suggest a different ID as a dagger would mean a throwing dagger instead of a shuriken; instead of if they can throw it or not depending on thier fencing skill, give it chances depending on the skill, better the skills, better the chance; and damage depending on the skills. Could be good
Admin BladeCraft
Shouldn't there be a tag or something to slow this down? Im not sure how it works on your shard but it looks like you can throw 20 really really fast either by hand or a macro prog and do a definitive 300 damage. Seems pretty solid of an attack for what originally seemed like a joke lol

Note: Just saw that the second one is a weapon, not ore so I guess that isn't bad but I still bring up the same concern if someone can get a lot of them. Perhaps the damage should be ranged from 8-16 or something?
Indegon
well since it is a dagger, they cant set it to a macro since daggers dont stack making the time it takes between throws considerably longer smile.gif so that should do the trick on that aspect
Indegon
also, did what bacchus said about the line and i do like the idea of them gaining accuracy with skill, i should b able to pull that off by looking at both my ore scripts and some of my other weapon scripts biggrin.gif thnx bacchus this should make them way better
Thynro
LOL thats great.

It's almost like the throwable dung script thats around,
really hilarious.
hxte
why not make a bow that shoots ore. and uses mining as its skill biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.