Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Hi about bindcommand and cursed water icon


Onairda

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   9
  • Joined:  12/30/16
  • Last Seen:  

Hi im using alot of bindcommand on my server like @joinevent and @findmatch but sometimes either one of them are not available to use why?? 

@joinevent Script

-    script    joinevent    -1,{
OnInit:
    bindatcmd "joinevent",strnpcinfo(2)+"::OnAtCommand";
    end;
OnAtCommand:
    if((strcharinfo(3) == "guild_vs3") && getgroupid() < 3)
        message strcharinfo(0),"You can't use @joinevent in this map.";
    else
	warp "que_temsky",151, 139;
        //atcommand "@joinevent";
    end;
}

	


@findmatch

prontera,155,181,5	script	FindMatch	777,{

bindatcmd "findmatch", strnpcinfo(3) +"::Oncommand";
		

Oncommand:
mes "I am Party Match Manager.";
mes "Party Leader may create a PVP Match here.";
next;
end;



help
 

Edited by G-RO
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   9
  • Joined:  12/30/16
  • Last Seen:  

Fix . just rename the 

Oncommand to another name it jsut like goto 
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   189
  • Joined:  11/19/11
  • Last Seen:  

On 26.10.2017 at 4:59 AM, G-RO said:

Hi im using alot of bindcommand on my server like @joinevent and @findmatch but sometimes either one of them are not available to use why?? 

@joinevent Script


-    script    joinevent    -1,{
OnInit:
    bindatcmd "joinevent",strnpcinfo(2)+"::OnAtCommand";
    end;
OnAtCommand:
    if((strcharinfo(3) == "guild_vs3") && getgroupid() < 3)
        message strcharinfo(0),"You can't use @joinevent in this map.";
    else
	warp "que_temsky",151, 139;
        //atcommand "@joinevent";
    end;
}

	


@findmatch


prontera,155,181,5	script	FindMatch	777,{

bindatcmd "findmatch", strnpcinfo(3) +"::Oncommand";
		

Oncommand:
mes "I am Party Match Manager.";
mes "Party Leader may create a PVP Match here.";
next;
end;



help
 

First: I would recommend you to use strnpcinfo(1) since you don't use an hidden name (#Name) for strnpcinfo(2) nor an unique name (::Name) for strnpcinfo(3).

2nd: You're missing OnInit for you're @findmatch command.

That's why it only works when you click on it.

3rd: I would recommend you also to move the bindatcmd for @findmatch to the end of the script since the npc is visible to normal players.

Regards,

Chris

Edited by llchrisll
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...