Jump to content
  • 0

No Dual / Multi Client Script not working anymore?


spinzaku

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  04/20/16
  • Last Seen:  

-    script    No Multiple Client    -1,{
    
OnPCLoadMapEvent:
    set .@charmap$, strcharinfo(3);
    if(!compare(.tmp$,.@charmap$)) end;
    set .@len, query_sql("SELECT DISTINCT `account_id` FROM `char` WHERE `account_id` IN "+
        "(SELECT `account_id` FROM `login` WHERE `last_unique_id` = "+
        "(SELECT `last_unique_id` FROM `login` WHERE `account_id`="+getcharid(3)+")) AND `online` <> 0;",.@a);
    if(.@len-1) {
        for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) {
            getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d]));
            if(.@charmap$==.@map$&&rid2name(.@a[.@d])!=strcharinfo(0)) {
                dispbottom "Dual accounts not allowed in this Map.";
                warp "prontera",156,186;
            }
        }
    }
    end;
    
OnInit:
    setarray   .maps$  ,    "prtg_cas01","prtg_cas02","prtg_cas03";
    set        .lens   ,    getarraysize(.maps$)                                   ;
    for(set(.a,0);.a<.lens;set(.a,.a+1)) {
        setmapflag .maps$[.a],    mf_loadevent ;
        set .tmp$  ,.tmp$+.maps$[.a]+",";
    }
}


Error:
 

[Warning]: script: buildin_getmapxy: Invalid type 0.
[Debug]: Source (NPC): No Multiple Client (invisible/not on a map)
[Warning]: script: buildin_getmapxy: Invalid type 0.
[Debug]: Source (NPC): No Multiple Client (invisible/not on a map)


I am running latest rAthena 2e3e8b8
Also have Gepard

Edited by spinzaku
Forgot to add info
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

Change 

getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d]))

to

getmapxy(.@map$,.@x,.@y,BL_PC,rid2name(.@a[.@d]))

not sure though. hehe.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  04/20/16
  • Last Seen:  

@Foob     Tested 2 clients and it worked. ? Thanks. Need to try it out with another ip.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...