Krit TH Posted May 21, 2024 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 10/22/21 Last Seen: 7 hours ago Share Posted May 21, 2024 Hello, i need help about this script NPC EventMemoryMatch, and here is this script. EventMemoryMatch.txt When i use lasted rA this NPC EventMemoryMatch script not working correctly and get this error. How to fix this script work correctly with lasted rA? PLEASE!! HELP. THANK YOU. Quote Link to comment Share on other sites More sharing options...
1 Hyroshima Posted May 22, 2024 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 189 Reputation: 122 Joined: 07/11/14 Last Seen: November 27, 2024 Share Posted May 22, 2024 (edited) Search for this function: function gviewid { set .@n,getarraysize(.viewid); while(1) { set .@zt,.@zt+1; if(.@zt&13)sleep2(1); if(set(.@u,.viewid[set(.@t,rand(.@n))])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; } and replace with this: function gviewid { set .@n,getarraysize(.viewid); if(.@n<=1) set .@rnd,0; else set .@rnd,rand(.@n); //dispbottom "."+getarraysize(.viewid)+""; while(1) { set .@zt,.@zt+1; if(.@zt&13)sleep2(1); if(set(.@u,.viewid[set(.@t,.@rnd)])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; } Edited May 22, 2024 by Hyroshima 1 Quote Link to comment Share on other sites More sharing options...
0 Takuyakii Posted May 21, 2024 Group: Members Topic Count: 41 Topics Per Day: 0.02 Content Count: 215 Reputation: 11 Joined: 08/30/19 Last Seen: March 6 Share Posted May 21, 2024 function viewid { function md { while(1) { set .@zt,.@zt+1; if(.@zt&13) sleep2(1); if(strmobinfo(3,set(.@t,rand(1001,1323)))) break; } return .@t; } set .@t,md(); for(set .@i,0;.@i<30;set .@i,.@i+1) if(.@t==.viewid[.@i]||.@t==1285||.@t==1286||.@t==1287||.@t==1288) { set .@t,md(); set .@i,-1; } return .@t; } function gviewid { set .@n,getarraysize(.viewid); while(1) { set .@zt,.@zt+1; if(.@zt&13) sleep2(1); if(set(.@u,.viewid[set(.@t,rand(.@n))])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; } Quote Link to comment Share on other sites More sharing options...
0 Krit TH Posted May 21, 2024 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 10/22/21 Last Seen: 7 hours ago Author Share Posted May 21, 2024 1 hour ago, Takuyakii said: function viewid { function md { while(1) { set .@zt,.@zt+1; if(.@zt&13) sleep2(1); if(strmobinfo(3,set(.@t,rand(1001,1323)))) break; } return .@t; } set .@t,md(); for(set .@i,0;.@i<30;set .@i,.@i+1) if(.@t==.viewid[.@i]||.@t==1285||.@t==1286||.@t==1287||.@t==1288) { set .@t,md(); set .@i,-1; } return .@t; } function gviewid { set .@n,getarraysize(.viewid); while(1) { set .@zt,.@zt+1; if(.@zt&13) sleep2(1); if(set(.@u,.viewid[set(.@t,rand(.@n))])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; } Hi, Thank for your helping. But i tried your script and it doesn't work. Get same error. Quote Link to comment Share on other sites More sharing options...
0 Krit TH Posted May 22, 2024 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 10/22/21 Last Seen: 7 hours ago Author Share Posted May 22, 2024 Have more solution for this? Please Help. Quote Link to comment Share on other sites More sharing options...
0 Krit TH Posted May 22, 2024 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 10/22/21 Last Seen: 7 hours ago Author Share Posted May 22, 2024 4 hours ago, Hyroshima said: Search for this function: function gviewid { set .@n,getarraysize(.viewid); while(1) { set .@zt,.@zt+1; if(.@zt&13)sleep2(1); if(set(.@u,.viewid[set(.@t,rand(.@n))])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; } and replace with this: function gviewid { set .@n,getarraysize(.viewid); if(.@n<=1) set .@rnd,0; else set .@rnd,rand(.@n); //dispbottom "."+getarraysize(.viewid)+""; while(1) { set .@zt,.@zt+1; if(.@zt&13)sleep2(1); if(set(.@u,.viewid[set(.@t,.@rnd)])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; } Wowwwww !!!!!THANK YOU SO MUCH!!! Your script help me fix this issue perfectly!!! THANK YOU AGAIN!!! Quote Link to comment Share on other sites More sharing options...
Question
Krit TH
Hello, i need help about this script NPC EventMemoryMatch, and here is this script.
EventMemoryMatch.txt
When i use lasted rA this NPC EventMemoryMatch script not working correctly and get this error.
How to fix this script work correctly with lasted rA?
PLEASE!! HELP. THANK YOU.
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.