Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to Create a Store Screen in Qfunction

Initiate Mage
Joined
Jan 5, 2008
Messages
4
Reaction score
0
hi all

i need to make an iteme .. when i click on it .. it open to me the store screen .. so i can store or get back items anywhere in hunt

i wrote in Qfunction

[@StdModeFunc10]
#call[\\market\Store.txt] @main


& in the store file

(@buy @sell @repair @s_repair @storage @getback)
%100
+30
+3
+25

[@main]
{
#SAY
Hello. What do you want to store?\ \
<
Store/@storage> item\
<
withdraw/@getback> stored item\
<Talk
to/@talk> Mira\ \
<
Exit/@exit>
[@storage]
You have currently stored <$SAVEITEM> items.\
You can still place <$REMAINSAVEITEM> more items.\
Please show me the items you want to deposit.\ \
<
back/@main>
[@getback]
You have currently stored <$SAVEITEM> items.\
This is the list of items you have deposited here.\
Please choose the item you wish to withdraw.\ \
<
back/@main>
[@talk]
#SAY
Have you seen a frost tiger?\
It looked so cute and cuddly when it seated on the grass.\
I want to raise one someday.\ \
<
End/@exit> the conversation
}


but it only open to me the dialog box without openning the store itself

i really need help so much
 
Newbie Spellweaver
Joined
Jun 3, 2008
Messages
50
Reaction score
0
hi all

i need to make an iteme .. when i click on it .. it open to me the store screen .. so i can store or get back items anywhere in hunt

i wrote in Qfunction

[@StdModeFunc10]
#call[\\market\Store.txt] @main


& in the store file

(@buy @sell @repair @s_repair @storage @getback)


%100
+30
+3
+25

[@main]
{
#SAY
Hello. What do you want to store?\ \
<
Store/@storage> item\
<
withdraw/@getback> stored item\
<Talk
to/@talk> Mira\ \
<
Exit/@exit>
[@storage]
You have currently stored <$SAVEITEM> items.\
You can still place <$REMAINSAVEITEM> more items.\
Please show me the items you want to deposit.\ \
<
back/@main>
[@getback]
You have currently stored <$SAVEITEM> items.\
This is the list of items you have deposited here.\
Please choose the item you wish to withdraw.\ \
<
back/@main>
[@talk]
#SAY
Have you seen a frost tiger?\
It looked so cute and cuddly when it seated on the grass.\
I want to raise one someday.\ \
<
End/@exit> the conversation
}


but it only open to me the dialog box without openning the store itself

i really need help so much

In Qfunction at the very top, put this: (@storage @getback)
then the script for the item:
[@StdModeFunc31]
What do you require?\
<Store items/@storage>\
<Withdrawl item/@getback>

then in TBL_STDITEMS put in a scroll with anicount the same as the func. number, in this case it would be FLD_ANICOUNT 31
 
Initiate Mage
Joined
Jan 5, 2008
Messages
4
Reaction score
0
ye it works :)

ty very much

but i can use another item for TM or Globalshout ?
 
Newbie Spellweaver
Joined
Jun 3, 2008
Messages
50
Reaction score
0
ye it works :)

ty very much

but i can use another item for TM or Globalshout ?
ye, just add in (@@sendmsg @consign @storage @getback)
Then do it the same way in qfunction as with storage one.
Heres script i have in qfunc. for global shout, it allows for only one shout per scroll.

[@StdModeFunc30]
You want to make a global shout?\
<Shout/@@sendmsg>
[@@sendmsg]
#ACT
SETSENDMSGFLAG
close


Then just use a merchant script for the other.
 
Initiate Mage
Joined
Jan 5, 2008
Messages
4
Reaction score
0
it work man on global shout but not TM

..

an i want to ask .. i can add a script to ring or armour as .. when i put it on char .. it do as example double exp or something ?
 
Back
Top