Jump to content

ItsRas

Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by ItsRas


  1. For the NPCs you have mentioned, you can find them in npc/scripts_custom.conf

     

    Then you need to remove the "//" before the npc file

     

    Ex.

    From:

    //npc: npc/custom/warper.txt

    To:

    npc: npc/custom/warper.txt

     

    then type @reloadscript in-game.


  2. Hello everyone,

    Can anyone help me with my party warper? I have managed to convert the script from the other emulator to herc but the problem it won't warp you to your party member.

    The error I am getting is this

     

    image.png.c24fbc9fd5b7288203118c6f0a5a342d.png

     

    The script:

    prontera,156,182,0	script	Party Warper	4_F_SWORDMAN,{
    	.@pid = getcharid(1);
    	.@cid = getcharid(0);
    	.@name$ = strcharinfo(0);
    	if (!.@pid) end;
    	getpartymember .@pid, 0;
    	getpartymember .@pid, 1;
    	getpartymember .@pid, 2;
    
    	for (.@i = 0; .@i < $@partymembercount; .@i++)
    		.@menu$ = .@menu$ + (.@name$ != $@partymembername$[.@i] ? $@partymembername$[.@i] : "") + ":";
    
    	.@s = select(.@menu$) - 1;
    	.@target$ = $@partymembername$[.@s];
    	
    	if (isloggedin($@partymemberaid[.@s], $@partymembercid[.@s])) {
    		getmapxy .@map$, .@x, .@y, BL_PC, .@target$;
    		if (setarray(.restricted_map$, .@map$) != -1)
    			message .@name$,"This is a restricted map.";
    		else
    			warp .@map$, .@x, .@y, .@cid;
    	} else 
    		message .@name$, .@target$ + " is not online.";
    	
    	close;
    
    	OnInit:
    		setarray .restricted_map$[0], 
    		"payon",
    		"geffen";
    		end;
    }

    Hope you guys can help me. Thanks in advance.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.