Hey i am making commands related some buystuff and want idea that how can i edit commands like !buyfood and when i bought food how can i save it to my name like when i type !mystuff it will show food bought by me......
Example::
In server
Punjabi type !buyfood <Noodles>Than it will show that i bought noodles and when i type !mystuff like this
Punjabi type !mystuff
!mystuff You have noodles..
acatually i want that when i buy food it will add to my other command to !mystuff
and then other command with which i can eat it..like !eat <noodles>
I just want an idea thats all or if u are interested in posting ur script u r free to post here below..
Eeh what are u using? WSV GUS SANSAN???
Try to save the food in a ini.
somthing like:
elseif ($2 == !buyfood) {
if ($3 == noodles) {
!writeini -n vcmp.food.ini NOODLES %name yes
vcmp.msg %id You bought noodles.
}
}
elseif ($2 == !mystuff) {
if ($readini(vcmp.food.ini,NOODLES,%name) == yes) {
vcmp.msg %id You got Noodles.
}
else vcmp.msg %id You dont have anything!
}
elseif ($2 == !eat) {
if ($3 == noodles) {
if ($readini(vcmp.food.ini,NOODLES,%name) == yes) {
vcmp.msg %id You eat some noodles.
}
else vcmp.msg %id You dont got any noodles!
}
}
Or something like that, NOTE: Untested
Hey thijn i am using WSV although thanks for posting and giving me idea how to make such type of commands.. ;)
Cya
Punjabi_goli
Ok
man its easy for gus. Playing with INI files :D i hope you can convert to WSV ::)
hy!
somebody would be able to write a script like this than the previous wsw hez?
very much thanks