Help - Search - Members - Calendar
Full Version: Shop Script Request.
eAthena Support Board > Modifications > Scripting & Databases > Archive > Script Support Archive
Nikko3024
Hi guys! i was wondering if this is possible...

Click to view attachment

can you help me with a script for it?
thankyou!

------------

Uhm i mean, you use another medium for example an item [Poring Coin] instead of zeny
Information
New script system have this new function, try to look inside script_command a bit before ask again =D
W1ndsor
http://www.eathena.ws/board/Mithril-Shop-t179889.html

search search

Info, dont make useless replies.

jk. wink.gif
~AnnieRuru~
QUOTE (GM-windsor- @ Mar 10 2008, 09:12 PM) *
Info, dont make useless replies.
ohh, don't backseat moderating tongue.gif
Nikko3024
@Information

QUOTE (Information @ Mar 10 2008, 11:10 AM) *
New script system have this new function, try to look inside script_command a bit before ask again =D


I tried reading the script_commands...
somehow i managed to understand Windsor's script in the link he posted.

But...uhm... is there a command changing the
________________________________________
|[ItemPic]......Red Can.........................50,000Z|

to this format?

____________________________________________
|[ItemPic]......Red Can.........................50,000 Coins|


and also changing the

______________________________________
|Total : 0 Zeny............................................|

to

______________________________________
|Total : 0 Coins............................................|


@GM-windsor-

I tried to use the script you made but when i click the npc, nothing happens...
here is the script with the items. [i may have committed an error editing].

[Link to Script]


-----------------------------------------------------------------------------------------------------------------

btw I'm using eA SQL 12274 Stable.
Information
The script that windsor give you is an old script system that we use before the cash shop is release.
I'm not sure that how it show but i can tell you that the zeny will change to something else, i give you a example of making the script:
QUOTE
prontera,100,100,4<TAB>cashshop<TAB>NPC Name<TAB>115,12143:50000,501:1;

Hope that you understand and didn't do any newbie things like others =)
Pardon for my words.
~AnnieRuru~
QUOTE (eAthena\doc\script_commands.txt)
Since trunk r12264 you can alternatively use "cashshop" in place of "shop"
to use the Cash Shop interface, allowing you to buy items with special points
(Currently stored as account vars in global_reg #CASHPOINTS and #FREEPOINTS.)
This type of shop will not allow you to sell items at it, you may only
purchase items here. The layout used to define sale items still count, and
"<price>" refers to how many points will be spent purchasing the them.

Information, then your information is wrong

topic starter request for Use Items to buy
not using variables to buy
Nikko3024
QUOTE (Information @ Mar 11 2008, 04:45 AM) *
The script that windsor give you is an old script system that we use before the cash shop is release.
I'm not sure that how it show but i can tell you that the zeny will change to something else, i give you a example of making the script:

Hope that you understand and didn't do any newbie things like others =)
Pardon for my words.


uhm...do i only need to change this [the chop to cashshop] or do i still need the attachshop command?

QUOTE (~AnnieRuru~ @ Mar 11 2008, 05:01 AM) *
Information, then your information is wrong

topic starter request for Use Items to buy
not using variables to buy


is this available in the stable version?
uhm...when i downloaded the files for server setup i had a difficult time discerning for a good one because the two looks the same...
but what branch is better?

wah... ani_wah.gif

what should i really do / change in the script... ani_sob.gif
Nikko3024
yey!...
i changed my server from stable to trunk now...
and the shop worked now!

i just changed the "shop" to "cashshop"...

i also checked the db and searched for the global_reg.

but i don't know how to do this since it is my first time to check this part of the sql database.

how do i put the values here.:

Click to view attachment

for example a player with these info:

account_id:.... 2000301
userid:.......... mike45
user_pass:.... andrews756
cashpoints:... 5000
freepoints:.... 800

thankyou!
Direction
Annie

I want to ask what is diffrent of Stable and Trunk???why cash shop NPC can use at Trunk???not Stable???i using eAthena 11916 Stable SQL.....Please Help Me.....
~AnnieRuru~
QUOTE (Direction @ Mar 11 2008, 04:01 PM) *
Annie

I want to ask what is diffrent of Stable and Trunk???why cash shop NPC can use at Trunk???not Stable???i using eAthena 11916 Stable SQL.....Please Help Me.....

They claim :
Trunk should have more commands, more features more update
Stable should be more stable, less crash, less bug

BUT !!!!
in reality, NOW
developer so lazy to fix stable branch as they keep adding new feature and fix Trunk branch
Now Trunk branch has less bug than Stable branch sleep.gif

Just use Trunk XD


actually, I think npcshopattach ... etc dynamic shop command is still not working on stable ... or so I see
I tested that script on Trunk
Information
ani_omg.gif Since when he edit his first post ani_swt3.gif Pardon me.
Nikko3024
QUOTE (Information @ Mar 11 2008, 10:16 AM) *
ani_omg.gif Since when he edit his first post ani_swt3.gif Pardon me.


you mean my post? the one with the screenie?

----

info can you help me with this?
Here
~AnnieRuru~
try this ?
http://www.eathena.ws/board/index.php?s=&a...st&p=975591
Nikko3024
QUOTE (~AnnieRuru~ @ Mar 11 2008, 10:35 AM) *


wow...the script really is LONG..

but how do i use it?
[sorry i'm just new doing this.]

thankyou.
~AnnieRuru~
at the left , where you put player name to PM another player
type npc:setvar
input player name then input variable name
#CASHPOINTS or #FREEPOINTS

I dunno what these variable means, this feature too new
Nikko3024
QUOTE (~AnnieRuru~ @ Mar 11 2008, 11:06 AM) *
type npc:setvar
input player name then input variable name
#CASHPOINTS or #FREEPOINTS


are all these in the left part?

i tried modifying the script and made it to a npc [clickable].

i managed to access the menu, set the permanent vars to #cashpoints and #freepoints and their corresponding value.

i also found that the values in sql query browser [global_reg_value] changed...but everytime i click on the cashshop npc, all the cashpoints/freepoints are zero
and that i can't buy any item... ani_sob.gif

is the script erroneous [my modification of the script]?
here's the copy of my modification:

[easu Link]

---------------------
i tried to do this to see if the script would work with a clickable npc and try using the inputs because i don't know how to use "npc:setvar" ani_swt3.gif
---------------------

thankyou!
~AnnieRuru~
damn the developers keep on telling lies on script_commands.txt sleep.gif

http://nopaste.php-quake.net/19108

Click to view attachment

its like this
you drag the item to buy area like you did to normal shop
but it only limited to only 1 type of item at a time

then after the item showed at the right side,
there is an input box just below it,
input to the maximum number you can
then a confirmation box pop-up to ask you want to buy the item or not

click ok and you bought the item
Nikko3024
QUOTE (~AnnieRuru~ @ Mar 12 2008, 03:52 PM) *
damn the developers keep on telling lies on script_commands.txt sleep.gif

http://nopaste.php-quake.net/19108

Click to view attachment

its like this
you drag the item to buy area like you did to normal shop
but it only limited to only 1 type of item at a time

then after the item showed at the right side,
there is an input box just below it,
input to the maximum number you can
then a confirmation box pop-up to ask you want to buy the item or not

click ok and you bought the item



uhm...annie...

the npc is still not working...

but the @commands:
- @cash
- @point

they both work...uhm...
can this lead to giving points/cash to others?

'cause they only add the points to the gm who uses the command.
Nikko3024
and also...

when i used the two commands..
[@cash & @point]

their values both disappear / reset to zero when you close the client and re-login...
ani_swt3.gif
~AnnieRuru~
I think you wait till developer can explain how it works
SuP3rTauFU
I already do all thing... Input name then input point... When i click on the other npc to buy the banana.. i dun have any point down there... so what should i do?
~AnnieRuru~
http://nopaste.php-quake.net/21629

developer has fixed everything
I tested on 12424 SQL Trunk

should be working now

Edit with attachments
Click to view attachment
aerosox
QUOTE (~AnnieRuru~ @ Mar 27 2008, 10:52 AM) *
http://nopaste.php-quake.net/21629

developer has fixed everything
I tested on 12424 SQL Trunk

should be working now

checked out the latest svn yesterday and tested your script , they worked perfectly
thanks
~AnnieRuru~
QUOTE (~AnnieRuru~ @ Mar 27 2008, 06:52 PM) *

forgot there is a #cash char-command for it lol

QUOTE (eAthena\conf\charcommand_athena.conf)
// Add or removes cash/kafra points to a character
cash: 60
points: 60


anyway this script may still usable with sending points to offline char ...
but I think this script quite useless now because most people give points though events or quest
sizenine
QUOTE (~AnnieRuru~ @ Apr 24 2008, 01:43 AM) *
forgot there is a #cash char-command for it lol
anyway this script may still usable with sending points to offline char ...
but I think this script quite useless now because most people give points though events or quest


may i ask how does the free cash work? it wont allow me to purchase with the free cash, it says insufficient fund even when i have enough. only purchasing with the points work.

Edit: Nevermind, it works now as I changed the points pricing to a larger number. However, what's weird is that the @points command gives me "Free Cash" instead of "Points", while the @cash command gives me "Points" instead of "Free Cash".
~AnnieRuru~
fix a bug not giving to offline players
Click to view attachment
http://www.rocklion.net/easu/2983/
Foow
Hello everyone.
Annie, your script works perfect, but there's a little bug or error...
See, let the screenshots show it to you:





I want to buy an apple (10 P) with Free Cash, and I put the correct amount in the Free Cash box.... --> isn't work, and It'll buy with Cash Points.

What can I do?

Thanks for answering.

And, another question... It's possible to have a limited "stock" on the shop? I mean... I want there only 3 apples, and 10 bananas, and when the 3 & 10 are bought, there are none.

Thanks.
RaiDin
Is there a simple command where players can trade in a certain custom item for cash points in a script?

An example [random]:
CODE
if(select("Yes:No")==2) close;
    input .@amount;
    if(.@amount > countitem(671)) {
    mes "You don't have enough to convert.";
    close;
    }
    next;
    mes "Here you go";
    set #kafrapoints, .@amount;
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.