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

Problem z opisem itema

kurczok666

New Member
Joined
Nov 23, 2008
Messages
64
Reaction score
1
Mam problem z opisem do yealahari seta/u a dokładniej chodzi o to że nie mogę znaleźć gdzie ustawiony jest opis "10:41 You see a yalahari leg piece (Arm:8, distance fighting +5, protection death +10%).
It can only be wielded properly by luczniks of level 80 or higher."

i gdzie zmienić żeby nie wyświetlało "s" przy łucznik czy rycerz.
 
Noo, niestety to nie jest jeszcze tak konfigurowalne. Końcowka 's automatycznie dodawana jest przez silnik.

Tak jak ktoś wyżej podał, item.cpp, a dokładniej to możesz to znaleść wyszukując "It can only be wielded properly by"
 
jak sie zmieni to
<attribute key="description" value="This potion can only be consumed by paladins of level 80 or higher."/>
na
<attribute key="description" value="This potion can only be consumed by lucznik of level 80 or higher."/>
to nie wdziala???
 
Nie rozumiesz że tego shitu nie ma w items.xml, a przynajmniej w TFS 0.3?

@down
w takim razie nie ma w 0.3.2, bo ja tego nie mam o.o

@edit
Już widzę..., takie cudo pokazuje tylko przy potionach, przy itemach tego nie ma ;)
 
Last edited:
Bo potiony to nie są bronie, i silnik nie generuje dla nich opisów z weapons.xml
 
Co ja tu mam dokładniej zmienić?

Code:
if(it.wieldInfo != 0)
	{
		s << std::endl << "It can only be wielded properly by ";
		if(it.wieldInfo & WIELDINFO_PREMIUM)
			s << "premium ";

		if(it.wieldInfo & WIELDINFO_VOCREQ)
			s << it.vocationString;
		else
			s << "players";

		if(it.wieldInfo & WIELDINFO_LEVEL)
			s << " of level " << (int32_t)it.minReqLevel << " or higher";

		if(it.wieldInfo & WIELDINFO_MAGLV)
		{
			if(it.wieldInfo & WIELDINFO_LEVEL)
				s << " and";
			else
				s << " of";

			s << " magic level " << (int32_t)it.minReqMagicLevel << " or higher";
		}

		s << ".";
	}
 
Code:
if(it.wieldInfo != 0)
	{
		s << std::endl << "It can only be wielded properly by ";
		if(it.wieldInfo & WIELDINFO_PREMIUM)
			s << "premium ";

		if(it.wieldInfo & WIELDINFO_VOCREQ)
			s << it.vocationString;
		else
			s << "players";

		if(it.wieldInfo & WIELDINFO_LEVEL)
			 << " of level " << (int32_t)it.minReqLevel << " or higher";

		if(it.wieldInfo & WIELDINFO_MAGLV)
		{
			if(it.wieldInfo & WIELDINFO_LEVEL)
				s << " and";
			else
				s << " of";

			s << " magic level " << (int32_t)it.minReqMagicLevel << " or higher";
		}

		s << ".";
	}

Ogólnie rzecz biorąc to pousuwaj sobie te "s" w wybranych przez siebie miejscach
 
A nie, jednak gdzie indziej to jest.

Poszukaj:
Code:
for(StringVec::iterator it = vocStringVec.begin(); it != vocStringVec.end(); ++it)

Kilka linijek niżej jest:
Code:
str += "s";
 
Ok mam, zmieniłem i działa :) Naprawdę wielkie dzięki za pomoc.
 
Last edited:
Back
Top