• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[Weapon]The Sprite Wand!

Tenaria

New Member
Joined
Apr 26, 2009
Messages
142
Reaction score
2
Hello, its me again:p
Iam really bored, and there are some new member they want the "Sprite Wand" Heres the code for it. NOT TESTED
But its Should work.
Heres the code, just create an new lua file in data/weapons/scripts name it what ever u want i named it "sprite"
and put that in it
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -60, -1.5, -70)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

In the Weapons XML put that where ever u want:
PHP:
<melee id="ID OF WAND" level="50" unproperly="1" enabled="1" function="internalLoadWeapon" script="sprite.lua"/>

Yours, Tenaria!
 
If you think you'll get reputation for something that simple, then you're wrong. Just anyone who's not that stupid [?] can make something like this.

I don't think you've helped many by creating this thread.

yea i'm like flaming??
 
If you think you'll get reputation for something that simple, then you're wrong. Just anyone who's not that stupid [?] can make something like this.

I don't think you've helped many by creating this thread.

yea i'm like flaming??

Pwnd! :/ (Hasuhusadhauh) And yes.. your flaming xD
 
If you think you'll get reputation for something that simple, then you're wrong. Just anyone who's not that stupid [?] can make something like this.

I don't think you've helped many by creating this thread.

yea i'm like flaming??


Your so noobish, let him make this wand. I think many people will love this wand !


@topic, its a nice script and it works as far as i can see :p
 
Yes i are flame moar <_<
 
Last edited:
It's n00b script :S i can make advanced uber0pr0 hax0x0r wand scripts pl0x.
someone plx delete my posts :s
 
dis iz mor pro

Lua:
local psychotitan = flame()
setkillhim(combat, blockmouth, 1)
setkillhim(combat, cuthead, 1)
setkillhim(combat, cutpenis, 1)
setdogainskillkillpsychotitan(combat, killedienoob, 100, 0, 100, 0)

local pscyhotitan = flame(CONDITION_FLAME)
setPsychoTitannoobshutthefuckup(condition, years, 1000)
addDamageCondition(condition, 10, 2000, -1)
setmakehimnoobcondition(combat, flame)

function onUseGMonhim(cid, 1)
	return doPSYCHOTITANKILL(cid, delete, one1yes ok bye)
end

ok?
 
yes ok ur very 0pr0 no pey plx aaaaAAAaa i owned :S:SS plix ....:):( btw script fails gives BSOD&Lua&PHP&SQl&XML error
skript ar werry own :S but i go make nubskript plix and bye
 
Ok Cykotitan, take it idiot



PHP:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat1, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 30)
setCombatFormula(combat1, COMBAT_FORMULA_SKILL , 0, 0, 4, 0)






local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.0, -60, -1.5, -70)



local arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 3, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0}

}

local area = createCombatArea(arr)
setCombatArea(combat1, area)



function onUseWeapon(cid, var)
	pos = getPlayerPosition(cid)
	mag = getPlayerMagLevel(uid)
	rand = math.random(1,100)
	if mag < 35 then
		if rand >= 95 then
			doSendAnimatedText(pos,"Magic Attack",math.random(1,255))
			return doCombat(cid, combat1, var) 
		else
			doCombat(cid, combat2, var) 
		end
	elseif mag >= 35 and mag < 55 then
		if rand >= 93 then
			doSendAnimatedText(pos,"Magic Attack",math.random(1,255))
			return doCombat(cid, combat1, var) 
		else
			doCombat(cid, combat2, var) 
		end
	elseif mag >= 55 and mag < 75 then
		if rand >= 90 then
			doSendAnimatedText(pos,"Magic Attack",math.random(1,255))
			return doCombat(cid, combat1, var) 
		else
			doCombat(cid, combat2, var) 
		end
	elseif mag >= 75 then
		if rand >= 85 then
			doSendAnimatedText(pos,"Magic Attack",math.random(1,255))
			return doCombat(cid, combat1, var) 
		else
			doCombat(cid, combat2, var) 
		end
	end
end
didnt tested ;)
Now shut up!
 
Noob script -.- make something advanced for a change <_<
 
Haha u said that u can doo better one, go on iam waiting! and i think u wouldnt can make a script that based on magic level? 0o
 
If you think you'll get reputation for something that simple, then you're wrong. Just anyone who's not that stupid [?] can make something like this.

I don't think you've helped many by creating this thread.

yea i'm like flaming??

If you think you gain posts by flaming, youre right. lol
<Just had to say that, made me feel good> :)
 
Back
Top