Gold & item transfer

Join Discord

mapadale

Guest
I'm currently writing an upgrade script for my server.

I can do the take and give and upgrade items.

However I'm stuck on an idea that I want to use, I want the items and gold to transfer to a GM account. So that it's stored in a .txt script and a GM can access to see whats in there and shows how many times it's been used.

So say the upgrade NPC has been used 3 times, I want this stored in a .txt file and the same with the items used. Anyone got any ideas on how I can do this.
 

Omikkk

Dedicated Member
Dedicated Member
Jul 20, 2006
232
10
65
Poland
#ACT
LoadValue D1 "GM_Def\abcd\abcd.txt" [Info] Used
Inc D1 1
SaveValue "GM_Def\abcd\abcd.txt" [Info] Used %D1

imo
 
Upvote 0

mapadale

Guest
#ACT
LoadValue D1 "GM_Def\abcd\abcd.txt" [Info] Used
Inc D1 1
SaveValue "GM_Def\abcd\abcd.txt" [Info] Used %D1

imo
Nice one cheers Omikk, I had an idea it would be somthing like that. Just wasn't sure, but thanks for that.

@Zordon

I only want to store certain information in the .txt file and using SQL is always a high chance of corrupting the DB, where as with a .txt entry it's a lot slimmer and storing in a .txt file is a lot easier for creating store scripts than SQL and they are only accessed by server admins anyway.

But thanks non the less.
 
Upvote 0