Jump to content

Dark Theme was set as default for all members. Please report any issues here.

Question

Hello !!

 

thank you for clicking on the link and reading my request....

 

 

May
i request for an NPC which can actually fetch the credits data from the
flux cp and would be a shop which would sell items in exchange of the
credits in flux panel db.

 

I m requesting u because i m
getting too much of item duper complaints and i guess setting global
variables or using the predefined db like cp_credits would actually help
in secure way of dealing with items.

 

 

Hoping for a positive response :)

 

Regards...

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

@@rector

 

prontera,166,207,4	script	Flux Point Shop	4_M_YOUNGKNIGHT,{		openshop;	end;	OnInit:		setarray [email protected],501, 502, 503;		setarray [email protected], 1, 1, 1; 		tradertype( NST_CUSTOM );		for( [email protected] = 0; [email protected] < getarraysize( [email protected] ); [email protected]++ )			sellitem [email protected][ [email protected] ], [email protected][ [email protected] ];	end;	OnCountFunds:		query_sql "SELECT balance FROM cp_credits WHERE account_id = " + getcharid( 3 ), [email protected];		setcurrency( [email protected] );	end;	OnPayFunds:		query_sql "SELECT balance FROM cp_credits WHERE account_id = " + getcharid( 3 ), [email protected];		if( [email protected] < @price ) end;		query_sql "UPDATE cp_credits SET balance = balance - " +  @price + " WHERE account_id = " + getcharid( 3 );		purchaseok();	end;}

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...

×
×
  • Create New...

Important Information

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