Jump to content
  • 0
Sign in to follow this  
Luffy

Can someone help me on this script?

Question

4 answers to this question

Recommended Posts

  • 0

 

-    shop    dynamicshop    -1,501:222new_1-1,45,77,4    script    Donation Shop    685,{    mes "Do you want to to Donate?";    next;    if(select("Why Donate:Buy Donate") == 1) {        mes "Why Donate on our Server?";        mes "We dont force you to donate,it's your free will to donate";        close;    }      callshop "dynamicshop",1;    npcshopattach "dynamicshop";    end;OnBuyItem:    for ( set .@j, 0; .@j < getarraysize(.items); set .@j, .@j + 2 ) {	    for ( set .@k, 0; .@k < getarraysize(@bought_nameid); set .@k, .@k + 1 ) {		    if ( @bought_nameid[.@k] == .items[.@j] ) {			    if ( checkweight( @bought_nameid[.@k], @bought_quantity[.@k] ) ) {				    if ( countitem(.currency) < .items[.@j + 1] ) {					    mes "You don't have enough " +getitemname(.currency)+ " to purchase this item.";                        close;				    } else {					    delitem .currency, .items[.@j + 1] * @bought_quantity[.@k];					    getitem @bought_nameid[.@k], @bought_quantity[.@k];                                                dispbottom @bought_nameid[.@k]+" "+ .items[.@j + 1]+" "+ .currency;                        end;				    }			    } else                    dispbottom "You cannot carry out more items with you";                    end;		    }	    }    }    deletearray @bought_quantity, getarraysize(@bought_quantity);    deletearray @bought_nameid, getarraysize(@bought_nameid);    end;OnInit:    set .currency, 7179; // pods    setarray .items, 1750,1,1766,2; // Usage : <item id>,<price>    npcshopitem "dynamicshop",0,0;    for ( set .@i, 0; .@i < getarraysize(.items); set .@i, .@i + 2 )        npcshopadditem "dynamicshop",.items[.@i], .items[.@i+1];    waitingroom "Donation Shop",0;    end;}

Share this post


Link to post
Share on other sites
  • 0

 

 

 

-    shop    dynamicshop    -1,501:222new_1-1,45,77,4    script    Donation Shop    685,{    mes "Do you want to to Donate?";    next;    if(select("Why Donate:Buy Donate") == 1) {        mes "Why Donate on our Server?";        mes "We dont force you to donate,it's your free will to donate";        close;    }      callshop "dynamicshop",1;    npcshopattach "dynamicshop";    end;OnBuyItem:    for ( set .@j, 0; .@j < getarraysize(.items); set .@j, .@j + 2 ) {	    for ( set .@k, 0; .@k < getarraysize(@bought_nameid); set .@k, .@k + 1 ) {		    if ( @bought_nameid[.@k] == .items[.@j] ) {			    if ( checkweight( @bought_nameid[.@k], @bought_quantity[.@k] ) ) {				    if ( countitem(.currency) < .items[.@j + 1] ) {					    mes "You don't have enough " +getitemname(.currency)+ " to purchase this item.";                        close;				    } else {					    delitem .currency, .items[.@j + 1] * @bought_quantity[.@k];					    getitem @bought_nameid[.@k], @bought_quantity[.@k];                                                dispbottom @bought_nameid[.@k]+" "+ .items[.@j + 1]+" "+ .currency;                        end;				    }			    } else                    dispbottom "You cannot carry out more items with you";                    end;		    }	    }    }    deletearray @bought_quantity, getarraysize(@bought_quantity);    deletearray @bought_nameid, getarraysize(@bought_nameid);    end;OnInit:    set .currency, 7179; // pods    setarray .items, 1750,1,1766,2; // Usage : <item id>,<price>    npcshopitem "dynamicshop",0,0;    for ( set .@i, 0; .@i < getarraysize(.items); set .@i, .@i + 2 )        npcshopadditem "dynamicshop",.items[.@i], .items[.@i+1];    waitingroom "Donation Shop",0;    end;}

 

 

 

 

 

Wow Great job! quesoph! it works, been wondering i request something to add on it. if its okay?

 

can you put a menu upon Choosing Buy Donate .

for ex.

Buy Donate >

◙ Headgears

◙ Item boost

◙ etc

 

something like this. Thank you in advance bro!

Edited by ayennnnnnn

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.