CyanZoldyck Posted April 18, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 31 Reputation: 0 Joined: 01/09/21 Last Seen: Saturday at 10:29 PM Share Posted April 18, 2023 Hello! I need help. I am using Euphy's WOE Controller script. I have this customization on where I am counting total of Silver Coins farmed from my fishing system to be uploaded in database. Count total of silver coins got in fishing per week and upload it in database Now, I want this silver coins to be added in WoE salary in this computation: Total of Silver Coins farmed in the whole server*5/100 woe_controller.txt Quote Link to comment Share on other sites More sharing options...
0 CyanZoldyck Posted April 20, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 31 Reputation: 0 Joined: 01/09/21 Last Seen: Saturday at 10:29 PM Author Share Posted April 20, 2023 Hi, Can someone help me with this? Here's the WOE rewards: // Rewards per castle. // setarray .reward_id[0], <itemID>{,<itemID>,...} // setarray .reward_amount[0], <amount>{,<amount>,...} setarray .reward_id[0],30202,12103; setarray .reward_amount[0],50,5; Here's my database table. I want to SUM the points column and then put that points added into WOE salary rewards into the ItemID 30202 in this computation. Total SUM of points * 5 / 100 Hi rAthena community, any luck with this? Quote Link to comment Share on other sites More sharing options...
0 CyanZoldyck Posted April 27, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 31 Reputation: 0 Joined: 01/09/21 Last Seen: Saturday at 10:29 PM Author Share Posted April 27, 2023 Anyone can help me with this? Thanks! Quote Link to comment Share on other sites More sharing options...
0 ryzenthird Posted May 14, 2023 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 23 Reputation: 3 Joined: 10/31/12 Last Seen: February 17, 2024 Share Posted May 14, 2023 Total Silver Coin Farmed in the whole server? query_sql("SELECT SUM(points) FROM table_name",.@sumpoints); // This would add all the points in the server or you could modify this to sum/add all silver coined farmed in the server like if its in inventory it should be query_sql("SELECT COUNT(*) FROM inventory WHERE item_id = silver_coin_item_id",.@total_silver_coined_farmed); so it should be set .@total,(.@total_silver_coined_farmed * 5) / 100; Quote Link to comment Share on other sites More sharing options...
0 CyanZoldyck Posted May 19, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 31 Reputation: 0 Joined: 01/09/21 Last Seen: Saturday at 10:29 PM Author Share Posted May 19, 2023 The query worked thank you! Can you teach me how can I add it as WoE reward? set .@total,(.@total_silver_coined_farmed * 5) / 100; Quote Link to comment Share on other sites More sharing options...
0 CyanZoldyck Posted May 22, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 31 Reputation: 0 Joined: 01/09/21 Last Seen: Saturday at 10:29 PM Author Share Posted May 22, 2023 bump. Anyone? Thank you! Quote Link to comment Share on other sites More sharing options...
Question
CyanZoldyck
Hello! I need help. I am using Euphy's WOE Controller script. I have this customization on where I am counting total of Silver Coins farmed from my fishing system to be uploaded in database. Count total of silver coins got in fishing per week and upload it in database
Now, I want this silver coins to be added in WoE salary in this computation: Total of Silver Coins farmed in the whole server*5/100
woe_controller.txt
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.