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

[REQUEST] Soul Stone or Blood Crystal

Ranyo13

ManCausingMayhem
Joined
Aug 22, 2009
Messages
981
Reaction score
38
Hello OTlanders,
Im requesting a soul stone or a blood crystal as seen on OTmadness and XtremeOT.
(What does it do?)
What is meant by soul stone or blood crystal?
Soul stone is an item that cud be equiped and gives you some features while equiped.
Where is the soul stone equiped?
Soul stone is equiped in the ammo slot.
What features does the soul stone have while equiped?
Adds 500+ magic levels & 50% Extra Hp & 50% Extra Mana.
What happens when deequiped?
All features are gone. :blink:

I will add REPUTATION for who helps me with this and i will realy appreciate the time and help.
Thanks in advance,
Ranyo13
 
wait what do you wanna it to do dident understand

- 50% more health and mana
- 500+ ml (think 170 is max :S)
- placed in arrow slot

edit::

Added all that execpt ml

Lua:
local condition = createConditionObject(CONDITION_ATTRIBUTES),
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 150)
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 150)
local slot = CONST_SLOT_AMMO
function onEquip(cid, item, slot)
	if getCreatureSlotItem(cid, slot) then
	doAddCondition(cid, condition)
		else
	doCreaturePopupFYI(cid, Use this item on the arrow slot.)
	return TRUE
end
 
function onDeEquip(cid, item, slot)
	doRemoveCondition(cid, CONDITION_ATTRIBUTES)
	return TRUE
end

not tested but should work. else pm me
 
Last edited:
Lua:
local condition = createConditionObject(CONDITION_ATTRIBUTES),
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 150)
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 150)
    	setConditionParam(condition, CONDITION_PARAM_STAT_MAGICPOINTS, 500)
local slot = CONST_SLOT_AMMO
function onEquip(cid, item, slot)
	if getCreatureSlotItem(cid, slot) then
	doAddCondition(cid, condition)
		else
	doCreaturePopupFYI(cid, Use this item on the arrow slot.)
	return TRUE
end
 
function onDeEquip(cid, item, slot)
	doRemoveCondition(cid, CONDITION_ATTRIBUTES)
	return TRUE
end
 
[09/07/2011 22:07:44] [Error - LuaScriptInterface::loadFile] data/movements/scripts/soulstone.lua:9: ')' expected near 'this'
[09/07/2011 22:07:44] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/soulstone.lua)
[09/07/2011 22:07:44] data/movements/scripts/soulstone.lua:9: ')' expected near 'this'
 
Your callin me a retard u dickhead? GTFO my thread i didnt know that u fuckface.

To admins: Sorry for any rule violating.. Like insults n others..
 
Code:
[09/07/2011 22:57:36] [Error - MoveEvents Interface] 
[09/07/2011 22:57:36] data/movements/scripts/soulstone.lua
[09/07/2011 22:57:36] Description: 
[09/07/2011 22:57:36] (luaSetConditionParam) Condition not found

[09/07/2011 22:57:36] [Error - MoveEvents Interface] 
[09/07/2011 22:57:36] data/movements/scripts/soulstone.lua
[09/07/2011 22:57:36] Description: 
[09/07/2011 22:57:36] (luaSetConditionParam) Condition not found
[09/07/2011 22:57:36] [Warning - Event::loadScript] Event onDeEquip not found (data/movements/scripts/soulstone.lua)
<_<

I got those in movements.xml

<movement type="Equip" itemid="5809" event="script" value="soulstone.lua"/>
<movement type="DeEquip" itemid="5809" event="script" value="soulstone.lua"/>
 
Code:
	<movevent event="Equip" itemid="xxxx" function="onEquipItem" script=".lua"/>
 	<movevent event="DeEquip" itemid="xxxx" function="onDeEquipItem" script=".lua"/>
Lua:
local condition = createConditionObject(CONDITION_ATTRIBUTES),
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 150)
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 150)
    	setConditionParam(condition, CONDITION_PARAM_STAT_MAGICPOINTS, 500)
local slot = CONST_SLOT_AMMO
function onEquip(cid, item, slot)
	if getCreatureSlotItem(cid, slot) then
	doAddCondition(cid, condition)
		else
	doCreaturePopupFYI(cid, "Use this item on the arrow slot.")
	return TRUE
end
 
function onDeEquip(cid, item, slot)
	doRemoveCondition(cid, CONDITION_ATTRIBUTES)
	return TRUE
end
that should work
Tho Please follow the rules 24h bump...
 
[10/07/2011 03:36:16] [Error - LuaScriptInterface::loadFile] data/movements/scripts/soulstone.lua:17: 'end' expected (to close 'function' at line 6) near '<eof>'
[10/07/2011 03:36:16] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/soulstone.lua)
[10/07/2011 03:36:17] data/movements/scripts/soulstone.lua:17: 'end' expected (to close 'function' at line 6) near '<eof>'
[10/07/2011 03:36:17] [Error - LuaScriptInterface::loadFile] data/movements/scripts/soulstone.lua:17: 'end' expected (to close 'function' at line 6) near '<eof>'
[10/07/2011 03:36:17] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/soulstone.lua)
[10/07/2011 03:36:17] data/movements/scripts/soulstone.lua:17: 'end' expected (to close 'function' at line 6) near '<eof>'
 
Omg... Don't you see that it just misses an end ;/

Lua:
local condition = createConditionObject(CONDITION_ATTRIBUTES),
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 150)
	setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 150)
    	setConditionParam(condition, CONDITION_PARAM_STAT_MAGICPOINTS, 500)
local slot = CONST_SLOT_AMMO
function onEquip(cid, item, slot)
	if getCreatureSlotItem(cid, slot) then
	doAddCondition(cid, condition)
else
	doCreaturePopupFYI(cid, "Use this item on the arrow slot.")
	end
	return TRUE
end
 
function onDeEquip(cid, item, slot)
	doRemoveCondition(cid, CONDITION_ATTRIBUTES)
	return TRUE
end
 
Back
Top