ooGubAoo Posted November 3, 2024 Group: Members Topic Count: 22 Topics Per Day: 0.03 Content Count: 55 Reputation: 1 Joined: 06/08/23 Last Seen: April 7 Share Posted November 3, 2024 - script Kill2Cash -1,{ OnNPCKillEvent: #CASHPOINTS = #CASHPOINTS + .@R; dispbottom "รับ : "+ .@R +" Cash รวม : "+ #CASHPOINTS +" Cash"; } end; OnInit: set .@R,50; //cashpoints per kill end; } Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted November 3, 2024 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: Yesterday at 08:40 AM Share Posted November 3, 2024 - script Kill2Cash -1,{ OnNPCKillEvent: #CASHPOINTS += .r; dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; } end; OnInit: .r = 50; //cashpoints per kill end; } You are using temporary npc variables. Quote Link to comment Share on other sites More sharing options...
0 ooGubAoo Posted November 4, 2024 Group: Members Topic Count: 22 Topics Per Day: 0.03 Content Count: 55 Reputation: 1 Joined: 06/08/23 Last Seen: April 7 Author Share Posted November 4, 2024 (edited) 18 hours ago, crazyarashi said: - script Kill2Cash -1,{ OnNPCKillEvent: #CASHPOINTS += .r; dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; } end; OnInit: .r = 50; //cashpoints per kill end; } You are using temporary npc variables. Oh. I must change dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; } to dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; and i need kill monster 50 to 1 point but this 1 cash per kill Edited November 4, 2024 by ooGubAoo Quote Link to comment Share on other sites More sharing options...
0 Mice Posted November 4, 2024 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 78 Reputation: 19 Joined: 12/24/18 Last Seen: 16 hours ago Share Posted November 4, 2024 3 hours ago, ooGubAoo said: Oh. I must change dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; } to dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; and i need kill monster 50 to 1 point but this 1 cash per kill Try - script Kill2Cash -1,{ OnInit: .killCount = 0; .pointsPerKill = 50; end; OnNPCKillEvent: .killCount++; if (.killCount >= .pointsPerKill) { #CASHPOINTS += 1; .killCount -= .pointsPerKill; dispbottom "รับ : 1 Cash รวม : " + #CASHPOINTS + " Cash"; } end; } Quote Link to comment Share on other sites More sharing options...
Question
ooGubAoo
- script Kill2Cash -1,{ OnNPCKillEvent: #CASHPOINTS = #CASHPOINTS + .@R; dispbottom "รับ : "+ .@R +" Cash รวม : "+ #CASHPOINTS +" Cash"; } end; OnInit: set .@R,50; //cashpoints per kill end; }
Link to comment
Share on other sites
3 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.