ooGubAoo Posted November 3, 2024 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
0 crazyarashi Posted November 3, 2024 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
0 ooGubAoo Posted November 4, 2024 Author 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
0 Mice Posted November 4, 2024 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
Question
ooGubAoo
- script Kill2Cash -1,{ OnNPCKillEvent: #CASHPOINTS = #CASHPOINTS + .@R; dispbottom "รับ : "+ .@R +" Cash รวม : "+ #CASHPOINTS +" Cash"; } end; OnInit: set .@R,50; //cashpoints per kill end; }
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.