- Joined
- Jan 15, 2014
- Messages
- 1,317
- Solutions
- 35
- Reaction score
- 435
Hmm that really helped alot. But can you show me where to put it and all? Just so you know, before I blindly ask questions, im trying to configure it myself personally, but I just can't get it :X
I was trying " addEvent(doSendAnimatedText, 1000, pos, RARE, color)" and after RARE pops up, 1000MS later a black 0 pops up, or a 9, or something (cant really tell) Here's the script from where it says CONST_ME_MAGIC_GREEN the first time, down to the second time. I guess after this experience, I should prolly learn to script, like, actually script. I've just been editing ones and I learn little things here and there about what makes WHICH thing work. So i'm getting some knowledge, but obviously not enough lmfao
Code:if( ret )then doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN) doSendAnimatedText(pos, ret:upper(), tiers[ret].color) addEvent(doSendAnimatedText, 1000, pos, RARE, color) end doAddContainerItemEx(parent, tmp) size = size + 1 end end end return size > 0 end local function dropLoot(pos, v, ext, master, cid, target) local corpse if( not master or master == target )then -- 0.3/4 corpse = getTileItemById(pos, v.lookCorpse).uid if( isContainer(corpse) )then for i = 1, getContainerSize(corpse) do doRemoveItem(getContainerItem(corpse, 0).uid) end local size, cap = 0, getContainerCap(corpse) for i = 1, #v.loot do if( size == cap )then break end local tmp, ret = createLoot(v.loot[i], ext) if( tmp )then if( isContainer(tmp) )then if( createChildLoot(tmp, v.loot[i].child, ext, pos) )then doAddContainerItemEx(corpse, tmp) size = size + 1 else doRemoveItem(tmp) end else if( ret )then doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN) doSendAnimatedText(pos, ret:upper(), tiers[ret].color) addEvent(doSendAnimatedText, 1000, pos, RARE, color) end
These words pos, text, color are empty values. These are just letting you know what parameters the function doSendAnimatedText uses.
The position where you would like to send the words should replace the word pos.
The text that you would like to send should replace the word text.
The color that you would like to send should replace the word color.
addEvent(doSendAnimatedText, 1000, {x=1000,y=1000,z=7}, "TxtTxt", 180)
The answer to your problem is right infront of you. Just take a look at what the previous function uses as parameters:
doSendAnimatedText(pos, ret:upper(), tiers[ret].color)