Install MSVC 2010.I got error when i open otserv.exe (NEED MSVCP100D.dll) if you can help thanks alot guys.
If you cut the error by half it's hard to identify what is happening.
OTHire Beta
This OTServer is based on OTServ Trunk SVN work (latest stable trunk rev).
@Ezzz - Can you specify a link to the converted distro, or a rev number?
Yes sir I did that. But then I just get debug whenever the item I altered is near me.Remove the items.otb version check in the source.
Ah maybe that's the problem. Because with one otitemeditor I could still start the server after editing items.otb (no error message) but when I summoned a SD I got debug.I think you also need to edit Tibia.dat for that
Got it working. I had to edit the dat file too. So now I've made very rune and vials stackable.
Now I have to figure out how to remove one item from the stack when you use a rune/vial. As of right now it removes the whole stack.
Any ideas?
Thanks. Yeah I figured it was source related since I couldn't find a "rune.lua" or similarTake a look at food scripts when you use a meat for example, compare it for when you use a fluid
For runes it's source related.
ReturnValue Game::internalRemoveItem(Item* item, int32_t count /*= -1*/, bool test /*= false*/, uint32_t flags /*= 0*/)
{
Cylinder* cylinder = item->getParent();
if(cylinder == NULL){
return RET_NOTPOSSIBLE;
}
if(count == -1){
count = item->getItemCount();
}
//check if we can remove this item
ReturnValue ret = cylinder->__queryRemove(item, count, flags | FLAG_IGNORENOTMOVEABLE);
if(ret != RET_NOERROR){
return ret;
}
if(!item->canRemove()){
return RET_NOTPOSSIBLE;
}
if(!test){
int32_t index = cylinder->__getIndexOfThing(item);
//remove the item
cylinder->__removeThing(item, count);
bool isCompleteRemoval = false;
if(item->isRemoved()){
isCompleteRemoval = true;
FreeThing(item);
}
cylinder->postRemoveNotification(item, NULL, index, isCompleteRemoval);
}
item->onRemoved();
return RET_NOERROR;
}
legacy-dev is long time not updated as we focused down on legacy branch from what I remember legacy-dev 9.1 changes? weren't really stable .Based on latest commit from Sep 11, 2013. You should do the 2 latest commits by Iryont since it comes with some fixes.
https://github.com/opentibia/server/tree/legacy-dev/src
legacy-dev is long time not updated as we focused down on legacy branch from what I remember legacy-dev 9.1 changes? weren't really stable .
You should upgrade to legacy latest rev https://github.com/opentibia/server/commits/legacy
not many commits but some fixes really important things.