Jump to content


Photo

Lower level requirement for merchant carts


Best Answer Dastgir, 19 May 2017 - 06:57 PM

Extremely sorry, didn't see the function before, it seems the cart shown is restricted by client and we just validate it to make sure the packet wasn't modified.
Workaround: You could use setcart scriptcommand Go to the full post


  • Please log in to reply
10 replies to this topic

#1 Lulupard

Lulupard

    Member

  • Members
  • PipPip
  • 17 posts

Posted 16 May 2017 - 08:30 PM

Hello!

 

Is it possible to allow all merchant classes to use carts intended for mechanics and genetics?

 

Lowering the levels in clif.c does nothing:

 

#ifdef NEW_CARTS
		(type == 9 && sd->status.base_level > 130) ||
		(type == 8 && sd->status.base_level > 120) ||
		(type == 7 && sd->status.base_level > 110) ||
		(type == 6 && sd->status.base_level > 100) ||
#endif
		(type == 5 && sd->status.base_level >  90) ||
		(type == 4 && sd->status.base_level >  80) ||
		(type == 3 && sd->status.base_level >  65) ||
		(type == 2 && sd->status.base_level >  40) ||
		(type == 1))

 

Is this hardcoded in the client?

 

Thank you.


Edited by Lulupard, 17 May 2017 - 07:43 AM.


#2 Dastgir

Dastgir

    Advanced Member

  • Script Developers
  • 3399 posts
  • IRC Nickname:Dastgir
  • Emulator:Hercules
  • Github:dastgir

Posted 17 May 2017 - 03:42 AM

New carts require client 20120201 or higher, it does not matter if you are running renewal or pre re, whereas for cart decoration feature, you need client >= 20150805

My Services: Click Here
Clientside Translation: Click HERE
Contact Via Discord: @Dastgir#1460


#3 Lulupard

Lulupard

    Member

  • Members
  • PipPip
  • 17 posts

Posted 17 May 2017 - 07:33 AM

New carts require client 20120201 or higher, it does not matter if you are running renewal or pre re, whereas for cart decoration feature, you need client >= 20150805

 

I have client 2015-09-16. To clarify, cart decoration is working. I was talking about carts intended for mechanics and genetics on levels 100+.

 

My question should probably have been: How to lower level requirement for merchant carts?


Edited by Lulupard, 17 May 2017 - 07:42 AM.


#4 Vy Low

Vy Low

    Advanced Member

  • Members
  • PipPipPip
  • 151 posts

Posted 17 May 2017 - 09:58 AM

Hello!

 

Is it possible to allow all merchant classes to use carts intended for mechanics and genetics?

 

Lowering the levels in clif.c does nothing:

 

#ifdef NEW_CARTS
		(type == 9 && sd->status.base_level > 130) ||
		(type == 8 && sd->status.base_level > 120) ||
		(type == 7 && sd->status.base_level > 110) ||
		(type == 6 && sd->status.base_level > 100) ||
#endif
		(type == 5 && sd->status.base_level >  90) ||
		(type == 4 && sd->status.base_level >  80) ||
		(type == 3 && sd->status.base_level >  65) ||
		(type == 2 && sd->status.base_level >  40) ||
		(type == 1))

 

Is this hardcoded in the client?

 

Thank you.

I want to implement this also, but i cant seem to make it work also. 


wanhosting1.png

 

KRO DIRECT DOWNLOAD http://kro.wanhosting.net
https://WanHosting.net - Ragnarok Hosting Solution

 


#5 Lulupard

Lulupard

    Member

  • Members
  • PipPip
  • 17 posts

Posted 18 May 2017 - 08:10 AM

How often can you bump topics here? Also bump.


Edited by Lulupard, 18 May 2017 - 08:10 AM.


#6 Dastgir

Dastgir

    Advanced Member

  • Script Developers
  • 3399 posts
  • IRC Nickname:Dastgir
  • Emulator:Hercules
  • Github:dastgir

Posted 18 May 2017 - 10:53 AM

Didn't lowering those value work? Tried lowering that? If it doesn't work, please explain what exactly is not working..

My Services: Click Here
Clientside Translation: Click HERE
Contact Via Discord: @Dastgir#1460


#7 Heph

Heph

    Member

  • Members
  • PipPip
  • 20 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 18 May 2017 - 11:03 AM

Hello!

 

Is it possible to allow all merchant classes to use carts intended for mechanics and genetics?

 

Lowering the levels in clif.c does nothing:

 

#ifdef NEW_CARTS
		(type == 9 && sd->status.base_level > 130) ||
		(type == 8 && sd->status.base_level > 120) ||
		(type == 7 && sd->status.base_level > 110) ||
		(type == 6 && sd->status.base_level > 100) ||
#endif
		(type == 5 && sd->status.base_level >  90) ||
		(type == 4 && sd->status.base_level >  80) ||
		(type == 3 && sd->status.base_level >  65) ||
		(type == 2 && sd->status.base_level >  40) ||
		(type == 1))

 

Is this hardcoded in the client?

 

Thank you.

Try lowering that.


rm7ddf.gif

 

HuK5Hy4.gif

aYJiLtu.gif


#8 Lulupard

Lulupard

    Member

  • Members
  • PipPip
  • 17 posts

Posted 18 May 2017 - 01:58 PM

Didn't lowering those value work? Tried lowering that? If it doesn't work, please explain what exactly is not working..

 

 

Hello!

 

Is it possible to allow all merchant classes to use carts intended for mechanics and genetics?

 

Lowering the levels in clif.c does nothing:

 

#ifdef NEW_CARTS
		(type == 9 && sd->status.base_level > 130) ||
		(type == 8 && sd->status.base_level > 120) ||
		(type == 7 && sd->status.base_level > 110) ||
		(type == 6 && sd->status.base_level > 100) ||
#endif
		(type == 5 && sd->status.base_level >  90) ||
		(type == 4 && sd->status.base_level >  80) ||
		(type == 3 && sd->status.base_level >  65) ||
		(type == 2 && sd->status.base_level >  40) ||
		(type == 1))

 

Is this hardcoded in the client?

 

Thank you.

Try lowering that.

 

I did lower them and recompiled. When using the Change cart skill, the carts in the window that appears were still tied to old level requirements.

 

So, for example, after changing (type == 2 && sd->status.base_level > 40) to (type == 2 && sd->status.base_level > 20) and using the Change cart skill with a 30 level character, only 1 cart option appeared.

 

I am not even sure this code has anything to do with the carts that show up in the client and I probably got everyone confused. Really sorry if that is the case.


Edited by Lulupard, 18 May 2017 - 02:04 PM.


#9 Vy Low

Vy Low

    Advanced Member

  • Members
  • PipPipPip
  • 151 posts

Posted 19 May 2017 - 09:26 AM

Didn't lowering those value work? Tried lowering that? If it doesn't work, please explain what exactly is not working..

 

 

Hello!

 

Is it possible to allow all merchant classes to use carts intended for mechanics and genetics?

 

Lowering the levels in clif.c does nothing:

 

#ifdef NEW_CARTS
		(type == 9 && sd->status.base_level > 130) ||
		(type == 8 && sd->status.base_level > 120) ||
		(type == 7 && sd->status.base_level > 110) ||
		(type == 6 && sd->status.base_level > 100) ||
#endif
		(type == 5 && sd->status.base_level >  90) ||
		(type == 4 && sd->status.base_level >  80) ||
		(type == 3 && sd->status.base_level >  65) ||
		(type == 2 && sd->status.base_level >  40) ||
		(type == 1))

 

Is this hardcoded in the client?

 

Thank you.

Try lowering that.

 

I did lower them and recompiled. When using the Change cart skill, the carts in the window that appears were still tied to old level requirements.

 

So, for example, after changing (type == 2 && sd->status.base_level > 40) to (type == 2 && sd->status.base_level > 20) and using the Change cart skill with a 30 level character, only 1 cart option appeared.

 

I am not even sure this code has anything to do with the carts that show up in the client and I probably got everyone confused. Really sorry if that is the case.

 

same goes with me. But when I change the level of the merchant to 100 and above, new carts are shown? any idea how we can enable it on merchants below 100?


wanhosting1.png

 

KRO DIRECT DOWNLOAD http://kro.wanhosting.net
https://WanHosting.net - Ragnarok Hosting Solution

 


#10 Dastgir

Dastgir

    Advanced Member

  • Script Developers
  • 3399 posts
  • IRC Nickname:Dastgir
  • Emulator:Hercules
  • Github:dastgir

Posted 19 May 2017 - 06:57 PM   Best Answer

Extremely sorry, didn't see the function before, it seems the cart shown is restricted by client and we just validate it to make sure the packet wasn't modified.
Workaround: You could use setcart scriptcommand

My Services: Click Here
Clientside Translation: Click HERE
Contact Via Discord: @Dastgir#1460


#11 Lulupard

Lulupard

    Member

  • Members
  • PipPip
  • 17 posts

Posted 19 May 2017 - 07:16 PM

Extremely sorry, didn't see the function before, it seems the cart shown is restricted by client and we just validate it to make sure the packet wasn't modified.
Workaround: You could use setcart scriptcommand

 

Got it, thank you! Will try that.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 26 user(s)