Jump to content

Problem with Voucher MD C++ & Read Book's C++


Recommended Posts

Good evening!
My little problem would be that I want to do the following:
The first problem
50300 The Book of Competence (I want this book to jump directly M "like I have M9 read 1 book and it gives me M10")
and,
50404 Sword aura book (this type of book I want to read normally "like I got M9 and to make M10 to read 9 books)
Like W * m2!
And for the second one ....
To automatically update me to MD vouchers
(I tried through char_item.cpp, it still gives me error when compiling .... I'm sure I'm wrong somewhere)
From source

Thank you in advance!
Excuse me bad English ...

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

	case YOUR_ITEM_VNUM:
	{
		if (IsPolymorphed())
		{
			return false;
		}

		int dwVnum = 0;

		if (item->GetVnum() == 50300)
		{
			dwVnum = item->GetSocket(0);
		}
		else
		{
			dwVnum = item->GetValue(0);
		}

		if (0 == dwVnum)
		{
			item->SetCount(item->GetCount() - 1);
			return false;
		}

		SetSkillLevel(dwVnum, GetSkillLevel(dwVnum)+1);
	}

It should work

Link to comment
Share on other sites

don't work.....

	case 50300:
	{
		if (IsPolymorphed())
		{
			return false;
		}

		int dwVnum = 0;

		if (item->GetVnum() == 50300)
		{
			dwVnum = item->GetSocket(0);
		}
		else
		{
			dwVnum = item->GetValue(0);
		}

		if (0 == dwVnum)
		{
			item->SetCount(item->GetCount() - 1);
			return false;
		}

		SetSkillLevel(dwVnum, GetSkillLevel(dwVnum)+1);
	}

don't work!!!

Link to comment
Share on other sites

  • 7 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.