• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

2 Spell Request! REP++

AbsoluteX

Learning Lua
Joined
Nov 9, 2009
Messages
121
Reaction score
3
Location
Australia
Hey guys just looking for two spells, I did try make the 1st one but failed miserably :( anyway

1st Spell: I want a spell that shoots ammo from your arrow slot, for example if i have a bolt in my arrow slot and say the spell, it will shoot out 1 bolt regardless of the weapon in my hand. Also if i have an infernal bolt in my arrow slot it will shoot that out instead doing more damage.. so the spell is supposed to do more damage depending on the ammo attack and distance level also should show the ammunition distance effect .

2nd Spell: A 3sqm ranged jump that when used jumps onto a target with the explosion distance effect coming in from north, south, east and west, BUT i need it to not be able to be used on certain creatures, eg training monk, boss creatures.

Thanks for your help/time! :D REP+
 
Last edited:
And what would happen if someone put a good item/money/donated item in that slot.. It shoot out also? "plz gm i lost itumz"

Otherwise it will need to "check for itemid =all ammo
then do spell else do standard spell" kinda thing.

Should be possible since you shoot ammo from ammo slot with crossbow etc so it'll use same concepts but with a talkaction which is effectively a spell.
 
Well, im not a good scripter at all but i was thinking it could work something like this:
Im only gonna use 4 items for it; 7366, 7368, 2399 and 2410

(Im just gonna put functions that i think are needed but its probably completly wrong but it was worth a shot)
LUA:
 if itemid="7366" and slot="arrow"(< i know thats completly wrong) then
doSendMagicEffect(toPosition, CONST_ANI_GREENSTAR)
doRemoveItem(item.uid, 1)

(((skill + 25) / 3) + (level / 5)), -((skill + 25) + (level / 5)) (Then for each item i can just change the formula to hit more whichever item they have in arrow slot)

Oh well probably embarassed the f*** out of myself but it was worth a shot! >.<
 
Back
Top