Darkshadows
Lua Scripter
- Joined
- Sep 15, 2007
- Messages
- 137
- Reaction score
- 1
Not exactly sure, just not being able to load my map saved as 8.54 on RME
<client version="8.54">
<data dat="0x4C2C7993" spr="0x4C220594"/>
</client>
doAddContainerItem(item.parent, EMPTY_VIAL)
runes is not worked =/
2 SD + 2 SD = 100 SD (oO)
...
<item id="2261" name="destroy field rune">
<attribute key="runeSpellName" value="adito grav" />
<attribute key="weight" value="120" />
remove > [COLOR="Red"]<attribute key="charges" value="1" />[/COLOR]
</item>
...
items.xml
fix all runes...Code:... <item id="2261" name="destroy field rune"> <attribute key="runeSpellName" value="adito grav" /> <attribute key="weight" value="120" /> remove > [COLOR="Red"]<attribute key="charges" value="1" />[/COLOR] </item> ...
Maybe re-write "ScriptEnviroment::streamThing" and push Parent ID there, so then:
Code:doAddContainerItem(item.parent, EMPTY_VIAL)
Yes, but they remove after 1 use no matter how many charges they have.
stream << "parent = " << item->getParent() << std::endl;
More ?Changelog:
Bugs:
#When player stop attack any creature... || FIXED!!!
#When player start attack npc or player... || 99% NEED FIX
#When player see any items (i know, it is potion) || FIXED!!!
#Bug with rune charges || FIXED!!!
Fun:
#Potions || 99% NEED FIX
#Sort items (like rl tibia) || NEED FIX
#Add items and atributes to items.xml || NEED FIX
#Add new monsters... || NEED FIX
#Add one new magic effect || DONE!!!
#Add new outfit || DONE!!
if(fromPosition.x == CONTAINER_POSITION)then
//not working
-- doAddContainerItem(item.parent, potion.empty ,1) --fix me!!!
doRemoveItem(item.uid, 1)
else
//it works V
doCreateItem(potion.empty, 1, getThingPos(item.uid))
doRemoveItem(item.uid, 1)
end
and now im getting this..
[14:27:57.344] > ERROR: Unknown world type: pvp
WORLDTYPE_OPTIONAL = 1
WORLDTYPE_OPEN = 2
WORLDTYPE_HARDCORE = 3
bool RuneSpell::executeUse(Player* player, Item* item, const PositionEx& posFrom,
g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getCharges()) - 1));
g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getItemCount()) - 1));
Whats the fix for the runes? When using a stack it treats it as a single rune (cause it considers it < 1 charge instead of <1 count i assume)
Nevermind, fixxed it
In spells.cpp go to
Code:bool RuneSpell::executeUse(Player* player, Item* item, const PositionEx& posFrom,
and replace:
Code:g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getCharges()) - 1));
with this:
Code:g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getItemCount()) - 1));
<item id="2261" name="destroy field rune">
<attribute key="runeSpellName" value="adito grav" />
<attribute key="weight" value="120" />
[B]delete-> [/B] [COLOR="Red"]<attribute key="charges" value="1" />[/COLOR]
</item>
container = getContainerUid(item.uid)
doRemoveItem(item.uid, 1)
doPlayerAddItem(potion.empty, 1)