- Joined
- Dec 26, 2013
- Messages
- 1,635
- Solutions
- 11
- Reaction score
- 878
Greetings Otland. Here today I release a script I was trying to make so it would be easier to customize the spell id of custom spells. I couldn't find a picture of all the icons with all the numbers, so I thought a command might speed everything up. Anyways credits to @forgee for debugging the script.
Use talkaction like this /spellid 2 and you will receive an icon of spellid as a cooldown on your character for 5 seconds.
talkactions/scripts/spellid.lua
talkactions.xml
Here is a folder with all the spellid images for tfs 1.0 that I could find using this command
https://drive.google.com/file/d/0B1kXc88erqmjS2lzNXVWVVRLajA/view?usp=sharing
P.S. It returns false on purpose, I didn't like my command showing up, just the cooldown and animation.
Use talkaction like this /spellid 2 and you will receive an icon of spellid as a cooldown on your character for 5 seconds.
talkactions/scripts/spellid.lua
Code:
local cooldown = Condition(CONDITION_SPELLCOOLDOWN)
cooldown:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
cooldown:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_YELLOW_RINGS)
cooldown:setParameter(CONDITION_PARAM_TICKS, 5000)
function onSay(cid, words, param)
local player = Player(cid)
local spellid = tonumber(param)
cooldown:setParameter(CONDITION_PARAM_SUBID, spellid)
player:addCondition(cooldown)
return false
end
talkactions.xml
Code:
<talkaction words="/spellid" separator=" " script="spellid.lua"/>
Here is a folder with all the spellid images for tfs 1.0 that I could find using this command
https://drive.google.com/file/d/0B1kXc88erqmjS2lzNXVWVVRLajA/view?usp=sharing
P.S. It returns false on purpose, I didn't like my command showing up, just the cooldown and animation.
Last edited: