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

Not remove arrows.

slaw

Software Developer
Joined
Aug 27, 2007
Messages
3,670
Solutions
125
Reaction score
1,117
Location
Germany
GitHub
slawkens
It is possible to make that arrows, will be not removed, but bolt yes?

I mean when i will have 1 arrow + bow, then my arrow will never end.

But when i will have bolt + crossbow then my amunition will end -1. Like now is. Bolt is removed but arrow not.

How to make it? I was trying to compile it by myself. Added in weapons all needed.
Code:
			if(ammoAction == AMMOACTION_NOREMOVECOUNT)
			{
				int32_t newCount = std::max(0, item->getItemCount() - 0);
				g_game.transformItem(item, item->getID(), newCount);
			}
It compiled without errors, but when i'm using arrow it still is removing. Please help me. ;)
 
Slawkens, I feel sorry for you, that no one posted.
Almost 3 Years now.

So I must post,
and for your problem

Use TFS 0.3.5, PL1 :thumbup:
 
Back
Top