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

AddMount function

Darkinho

New Member
Joined
Feb 25, 2009
Messages
145
Reaction score
0
If you use doPlayerAddMount and use some storage value in another at mounts.xml, your storage mount didn't work anymore.

EG:
doPlayerAddMount(cid, 1) - You found the terror bird. OK!
Mounts.xml -> To use mount id 2 you need the storage 1000 = 1. Didn't work if you have completed the quest above.
 
Storage values¹ in mounts.xml didn't work if player has tamed² some mount.

¹ If storage X = 1, then player owns the mount.
² Using doPlayerAddMount function.
 
Elf replied this:
Code:
	std::string storageId, storageValue;
	if(readXMLString(p, "quest", strValue))
	{
		storageId = strValue;
		storageValue = "1";
	}
	else
	{
		if(readXMLString(p, "storageId", strValue))
			storageId = strValue;

		if(readXMLString(p, "storageValue", strValue))
			storageValue = strValue;
	}
Ok. I've found this code at mounts.cpp. But the error stills.
 
Back
Top