NexusXVI Posted October 7, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Share Posted October 7, 2013 (edited) Disclamer : This is not my script, I only found it in rathena I am having problems making it work and I need help. Here is the script : dewata,186,178,5 script Points Manager 106,{ switch( select( "Enter Greedy Points Room", "Exchange Points to "+getitemname(.CoinID), "Check Points", "Exit" ) ){ Case 1: warp .Map$,0,0; end; Case 2: mes "You got "+#Points+" Points."; mes "How many will be used to change into "+getitemname(.CoinID)+" ?"; mes "Each "+getitemname(.CoinID)+" = "+.Rate+" Points."; if( #Points >= .Rate ){ input .@Amount,0,#Points; set .@Calculation,( .@Amount / .Rate ); if( .@Calculation ){ set #Points,#Points - ( .@Calculation * .Rate ); getitem 7227,.@Calculation; mes "Gained "+.@Calculation+" x "+getitemname(.CoinID); } } close; Case 3: mes "You got "+#Points+" Greedy Points."; default: break; } close; OnInit: set .Map$,"guild_vs5"; set .CoinID,7227; set .Rate,10; monster .Map$,0,0,1906,100,strnpcinfo(0)+"::OnKilled"; end; OnNPCKillEvent: set #Points,#Points + rand(1); monster .Map$,0,0,1906,1,strnpcinfo(0)+"::OnKilled"; dispbottom "You Currently Have " +#Points +" Greedy Points"; end; } guild_vs5,0,0,0,0 monster Greedy Barricade 1906,10,0,0,0 guild_vs5,0,0,0,0 monster Greedy Barricade 1906,10,0,0,0 guild_vs5,0,0,0,0 monster Greedy Barricade 1906,10,0,0,0 Here is the error: Thanks in advance Edited October 7, 2013 by NexusXVI Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted October 8, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 8, 2013 (edited) Sir no points is being added even thou I already set it to +1no error on map server dewata,186,178,5 script Points Manager 106,{ switch( select( "Enter Greedy Points Room", "Exchange Points to "+getitemname(.CoinID), "Check Points", "Exit" ) ){ Case 1: warp .Map$,0,0; end; Case 2: mes "You got "+#Points+" Points."; mes "How many will be used to change into "+getitemname(.CoinID)+" ?"; mes "Each "+getitemname(.CoinID)+" = "+.Rate+" Points."; if( #Points >= .Rate ){ input .@Amount,0,#Points; set .@Calculation,( .@Amount / .Rate ); if( .@Calculation ){ set #Points,#Points - ( .@Calculation * .Rate ); getitem 7227,.@Calculation; mes "Gained "+.@Calculation+" x "+getitemname(.CoinID); } } close; Case 3: mes "You got "+#Points+" Greedy Points."; default: break; } close; OnInit: set .Map$,"guild_vs5"; set .CoinID,7227; set .Rate,10; monster .Map$,0,0,"NAME",1906,1,strnpcinfo(0)+"::OnKilled"; end; OnKilled: set #Points,#Points + 1; monster .Map$,0,0,"NAME",1906,1,strnpcinfo(0)+"::OnKilled"; dispbottom "You Currently Have " +#Points +" Greedy Points"; end; } guild_vs5,0,0,0,0 monster Greedy Barricade 1906,15,0,0,0 guild_vs5,0,0,0,0 monster Greedy Barricade 1906,15,0,0,0 guild_vs5,0,0,0,0 monster Greedy Barricade 1906,15,0,0,0 Fixed it Thnx Edited October 8, 2013 by NexusXVI Quote Link to comment Share on other sites More sharing options...
Capuche Posted October 7, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted October 7, 2013 Read : Permanent_Monster_Spawn Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted October 8, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 8, 2013 (edited) Ok!!! Thank you for teaching me that sir. I'll try that and update you with the result. Edited October 8, 2013 by NexusXVI Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 8, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 8, 2013 should be OnKilled: set #Points,#Points + rand(1); monster .Map$,0,0,1906,1,strnpcinfo(0)+"::OnKilled"; dispbottom "You Currently Have " +#Points +" Greedy Points"; end; guild_vs5,0,0,0,0 monster Greedy Barricade 1906,10,0,0,"Points Manager::OnKilled" Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted October 8, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 8, 2013 (edited) Read : Permanent_Monster_Spawn Thanks for Introducing me to that part, learned a lot and removed the syntax error. @Emistry Used the txt you've given me sir but a couple of warnings still persist Addition : Tried the npc and when I kill a barrier an error on the map server appear npc_event: event not found [0"Points Manager: :OnKilled] Edited October 8, 2013 by NexusXVI Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 8, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 8, 2013 monster .Map$,0,0,"NAME",1906,1,strnpcinfo(0)+"::OnKilled"; 1 Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted October 8, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 8, 2013 (edited) Yup that solves it ALL!! /no1 /kis2 /ok Omg sorry sir Emistry but still a couple of error :at map server when the npc is loaded it shows nothing but when I kill a monsterthis error shows up again Edited October 8, 2013 by NexusXVI Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 8, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 8, 2013 monster .Map$,0,0,"NAME",1906,1,strnpcinfo(0)+"::OnKilled"; Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted October 8, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 8, 2013 (edited) No error now but cant get any pointsHow to make it 1 point per kill? Edited October 8, 2013 by NexusXVI Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 8, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 8, 2013 set #Points,#Points + 1; if you want to use random point...refer rand 1 Quote Link to comment Share on other sites More sharing options...
Question
NexusXVI
Disclamer : This is not my script, I only found it in rathena
I am having problems making it work and I need help.
Here is the script :
Here is the error:

Thanks in advance
Edited by NexusXVILink to comment
Share on other sites
10 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.