cheertimmy
New Member
- Joined
- Aug 11, 2012
- Messages
- 6
- Reaction score
- 0
Was wondering if anyone could help with ring/neck that gives % xp boost.
Server TFS 0.3.6
i have been trying a script and modified a lil, im kinda new to this and go by tons of trial and error with looking at scripts and copy/paste. Anyway problem is it gives xp boost and says words but i can only equip brand new ring. Then if you remove from slot it doesnt deEquip so time runs out and its preventing from placing ring back in slot. Also the exp gain stays with char prob do to ring not deactivating. Here is a script i found and butchered:
--------------------------------------------------------------------------------------------
i have that in data/movements/script
-------------------------------------------------
thats my movements.xml
and if it matters the deEquiped id is 2169
Any help would be greatly appreciated =D
Server TFS 0.3.6
i have been trying a script and modified a lil, im kinda new to this and go by tons of trial and error with looking at scripts and copy/paste. Anyway problem is it gives xp boost and says words but i can only equip brand new ring. Then if you remove from slot it doesnt deEquip so time runs out and its preventing from placing ring back in slot. Also the exp gain stays with char prob do to ring not deactivating. Here is a script i found and butchered:
--------------------------------------------------------------------------------------------
Code:
local config = {
doubledRate = 20,
normalRate = 10,
doEffect = CONST_ME_MAGIC_RED
}
function onEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"DOUBLE EXP.")
doSendMagicEffect(getPlayerPosition(cid), config.doEffect)
doPlayerSetExperienceRate(cid, config.doubledRate)
end
function onDeEquip(cid, item, slot)
doPlayerSetExperienceRate(cid, config.normalRate)
end
i have that in data/movements/script
-------------------------------------------------
Code:
<movevent type="Equip" itemid="2206" slot="ring" event="script" value="expring.lua"/>
<movevent type="DeEquip" itemid="2206" slot="ring" event="function" value="onDeEquipItem"/> <-- ive tried using all with script in all combinations it does nothing
<movevent type="Equip" itemid="2169" slot="ring" event="function" value="onEquipItem"/>
thats my movements.xml
and if it matters the deEquiped id is 2169
Any help would be greatly appreciated =D