• 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!

How would i make a wand throw Frozen Starlights?

gokuchi

Banned User
Joined
Aug 21, 2013
Messages
22
Reaction score
0
Hello, I made an arcane stuff into a wand, but it only throws ice, I want it to throw Frozen Starlight.
Like the old sprite wand.
how do i do it?

- - - Updated - - -

bump, please help
 
You can check all the available animations in-game on an admin character using the following commands:

/z ## - Area Animations (Magic Effects)
/x ## - Distance Animations (Shoot Effects)

For Example: (This is all from memory so I may be wrong)
/z 0 -- Red Spark
/z 1 -- Water Drop
/z 2 -- Smoke Poff (I call it the dust cloud)
etc
 
Are you sure your character is an Admin?

Paste your talkactions.lua here. It's almost guaranteed you have it.

- - - Updated - - -

<talkactions>
<!-- God -->
<talkaction log="yes" group="4" access="3" words="/addskill;/upgrade" event="script" value="skill.lua"/>
<talkaction log="yes" group="4" access="3" words="/attr;/edition" event="function" value="thingProporties"/>
<talkaction log="yes" group="4" access="3" words="/serverdiag" event="function" value="diagnostics"/>
<talkaction log="yes" group="4" access="3" words="/closeserver;/openserver" event="script" value="closeopen.lua"/>
<talkaction log="yes" group="4" access="3" words="/promote;/demote" event="script" value="promote.lua"/>
<talkaction log="yes" group="4" access="3" words="/shutdown" event="script" value="shutdown.lua"/>
<talkaction log="yes" group="4" access="3" words="/mode" event="script" value="mode.lua"/>
<talkaction log="yes" group="4" access="3" words="/m;/monster;/n;/npc" event="script" value="creature.lua"/>
<talkaction log="yes" group="4" access="3" words="/i;/objetos;/items" event="script" value="createitem.lua"/>
<talkaction log="yes" group="4" access="3" words="/s;/summon" event="script" value="summon.lua"/>
<talkaction log="yes" group="4" access="3" words="/storage" event="script" value="storage.lua"/>
<talkaction log="yes" group="4" access="3" words="/config" event="script" value="configinfo.lua"/>
<talkaction log="yes" group="4" access="3" words="/mkick" event="script" value="masskick.lua"/>
<talkaction log="yes" group="4" access="3" words="/owner" event="script" value="owner.lua"/>
<talkaction log="yes" group="4" access="3" words="/save" event="script" value="save.lua"/>
<talkaction log="yes" group="4" access="3" words="/b" event="script" value="broadcast.lua"/>
<talkaction log="yes" group="4" access="3" words="/bc" event="script" value="broadcastclass.lua"/>
<talkaction log="yes" group="4" access="3" words="/unban" event="script" value="unban.lua"/>
<talkaction log="yes" group="4" access="3" words="/raid" event="script" value="raid.lua"/>
<talkaction log="yes" group="4" access="3" words="/newtype" event="script" value="newtype.lua"/>
<talkaction log="yes" group="4" access="3" words="/send" event="script" value="teleportsend.lua"/>
<talkaction log="yes" group="4" access="3" words="/wp" event="script" value="waypoints.lua"/>
<talkaction log="yes" group="4" access="3" words="/r;/remove" event="script" value="remove.lua"/>
<talkaction log="yes" group="4" access="3" words="/c" event="script" value="teleporthere.lua"/>
<talkaction log="yes" group="4" access="3" words="/kick" event="script" value="kick.lua"/>
<talkaction log="yes" group="4" access="3" words="/reload" event="script" value="reload.lua"/>
<talkaction log="yes" group="4" access="3" words="/up;/down" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" group="4" access="3" words="/clean" event="script" value="clean.lua"/>
<talkaction log="yes" group="4" access="3" words="/town" event="script" value="teleporttown.lua"/>
<talkaction log="yes" group="4" access="3" words="/info" event="script" value="playerinfo.lua"/>
<talkaction log="yes" group="4" access="3" words="/cliport;/squelch" event="script" value="gamemaster.lua"/>
<talkaction log="yes" group="4" access="3" words="/ghost;/invisible" event="function" value="ghost"/>
<talkaction log="yes" group="4" access="3" words="/mute;/unmute" event="script" value="mute.lua"/>
<talkaction log="yes" group="4" access="3" words="/light" event="script" value="gamemaster.lua"/>
<talkaction log="yes" group="4" access="3" words="/ban" event="script" value="ban.lua"/>
<talkaction log="yes" group="4" access="3" words="/notations" event="script" value="notations.lua"/>
<talkaction log="yes" group="4" access="3" words="/goto;!goto" event="script" value="teleportto.lua"/>
<talkaction log="yes" group="4" access="3" words="/baninfo" event="function" value="banishmentInfo"/>
<talkaction log="yes" group="4" access="3" words="/a" event="script" value="teleporttiles.lua"/>
<talkaction log="yes" words="/zombiestart" access="3" event="script" value="zombie/onsay.lua"/>
<talkaction log="yes" words="/t" group="4" access="3" event="script" value="teleportmaster.lua"/>
<talkaction words="!notice;!news" event="script" value="notice.lua"/>
<!-- Players -->
<talkaction words="!naddon" event="script" value="normaladdondoll.lua"/>
<talkaction words="!eaddon" event="script" value="especialaddondoll.lua"/>
<talkaction words="/bounty;!bounty;!hunt;/hunt" script="tbounty.lua"/>
<talkaction access="0-3" words="!frags" event="script" value="frags.lua"/>
<talkaction access="0-3" words="!online" event="script" value="online.lua"/>
<talkaction access="0-3" words="!uptime" event="script" value="uptime.lua"/>
<talkaction access="0-3" words="!commands" event="script" value="commands.lua"/>
<talkaction access="0-3" words="!aol" event="script" value="aol.lua"/>
<talkaction words="!offer" event="script" value="auctionsystem.lua"/>
<talkaction words="!shop" event="script" value="znoteshop.lua"/>
<!-- Houses -->
<talkaction access="0-3" words="alana res;/buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction access="0-3" words="alana grav;/sellhouse" filter="word-spaced" event="function" value="houseSell"/>
<talkaction access="0-3" words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
<talkaction access="0-3" words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
<talkaction access="0-3" words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
<talkaction access="0-3" words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
<talkaction access="0-3" words="alana som;/leavehouse" filter="word-spaced" event="script" value="leavehouse.lua"/>
<!-- Guilds -->
<talkaction access="0-3" words="!createguild;/createguild" event="function" value="guildCreate"/>
<talkaction access="0-3" words="!joinguild;/joinguild" event="function" value="guildJoin"/>
<talkaction access="0-3" words="/war" channel="0" event="script" value="war.lua"/>
<talkaction access="0-3" words="/balance" channel="0" event="script" value="balance.lua"/>
<talkaction filter="word" words="!guildcast;/guildcast" script="guildcast.lua"/>
</talkactions>
Requires sprite editing. :p
i dont think so, old ots used to have this
 
Old OTs did used to have this.
BUT! They changed the actual animation.
You could do it with custom sprites now.

Here is the script for the talkaction you are missing:

Name it DistanceEffect.lua
Lua:
function onSay(cid, words, param, channel)
	param = tonumber(param)
	if(not param or param < 0 or param > CONST_ANI_LAST) then
		doPlayerSendCancel(cid, "Numeric param may not be lower than 0 and higher than " .. CONST_ANI_LAST .. ".")
		return true
	end

	local position = getCreaturePosition(cid)
	for i = 1, 30 do
		doSendDistanceShoot(position, {x = position.x + math.random(-7, 7), y = position.y + math.random(-5, 5), z = position.z}, param)
	end

	return true
end
Add this line in talkactions.lua
<talkaction log="yes" group="4" access="3" words="/x;!x" event="script" value="DistanceEffect.lua"/>
 
It's easy.. open the folder weapons then the scripts and create a new lua.file


local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.3, -30, -0.8, 0)


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