Jump to content

Recommended Posts

  • 2 weeks later...
Posted

no. i know it. it manually add.

im just asking is this code still can be use on 17200 svn above ?

 

Yes. It can be use.

 

just change this..

 

 

vending_openvending(sd, message, flag, data, len/8);

 

to

 

vending_openvending(sd, message, data, len/8);

 

latest rathena removed the flag..

  • Upvote 1
Posted
this system is an awesome system, should make such a system for the official rathena!, not to mention that this system VendingSystem_1.8.1 this outdated!

should have aomenos complete without a patch for the bug verçoes rathena latest as rathena17230! or +
Posted

in vending.c

 

rewrite

 

 



pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 

to 

else
{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

  • 2 weeks later...
Posted

It's like Lilith is no longer giving support for this src mod. Too bad.. But thanks to Solid2005. Hoping that you will keep updating the changes. I had successfully installed this src mod to my r17227.

For those who can't install this, please show here your error while compiling. It helps a lot.

Good luck.

Posted

in vending.c

 

rewrite

 

 



pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 

to 

else
{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

This is for ?

Posted

@Solid2005 uhmm .. i've got a problem,
Lets assume: Char 1 and Char 2

Char 1 Sells: Apple for 1 Cash
And Char 2 Buy 1 Apple for 1 Cash.
In order to buy the apple it needs 1zeny and 1 cash.
If zeny is 0 I can't buy the item using cash.

------

Another Scene, 
Char 1 Sells Banana for 1 cash
Char 2 buy the banana
on the side of Char 1
on the Chatbox says; Revenue from "Char2" is: 0 but the item is sold and cash is reduce from char 2

what would be the possible problem for this ? 

Posted
@suyothegreat

Another Scene, 
Char 1 Sells Banana for 1 cash
Char 2 buy the banana
on the side of Char 1
on the Chatbox says; Revenue from "Char2" is: 0 but the item is sold and cash is reduce from char 2

what would be the possible problem for this ? 

 

Tax

 

Kadze already fix that.

 

in vending.c

 

rewrite

 

 



pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 

to 

else
{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

 

 

Fix for 1.8.3

-Added new rev 17288

-Fix Tax Credit to @kadze

 

[Note]

Always have a backup and use first on test server.

 

ExtendedVendingSystem_1.8.3.patch

  • Upvote 2
Posted
@suyothegreat

Another Scene, 
Char 1 Sells Banana for 1 cash
Char 2 buy the banana
on the side of Char 1
on the Chatbox says; Revenue from "Char2" is: 0 but the item is sold and cash is reduce from char 2

what would be the possible problem for this ? 

 

Tax

 

Kadze already fix that.

 

 

in vending.c

 

rewrite

 

 



pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 

to 

else
{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

 

 

Fix for 1.8.3

-Added new rev 17288

-Fix Tax Credit to @kadze

 

[Note]

Always have a backup and use first on test server.

 

attachicon.gifExtendedVendingSystem_1.8.3.patch

Thanks You ROCK ! Solid2005

Posted

this i can't fix 

 

Char 1 Sells: Apple for 1 Cash
And Char 2 Buy 1 Apple for 1 Cash.
In order to buy the apple it needs 1zeny and 1 cash.
If zeny is 0 I can't buy the item using cash.

 

unless seperate the variable for zeny and for the custom, variable z is the zeny count.

  • 2 weeks later...
Posted (edited)

hi, i tried this using my test server rev17008 using  ExtendedVendingSystem_1.8.2.patch tried to use 1.8.3 but it keeps on asking me What File to Patch:

 

here's the error

 

In file included from pc.h:12,
                 from map.c:23:
itemdb.h:162: error: redefinition of 'struct s_item_vend'
make[1]: *** [obj_sql/map.o] Error 1
make[1]: Leaving directory `/home/test/sro/trunk17008/srotest/src/map'
make: *** [map_sql] Error 2
 

 

 

 

thanks in advance /no1

Edited by jigsgfx

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...