Jump to content

Question

Posted

hello good night, someone could tell me where I am going wrong in this script? I thank you very much.

    for(set @i,0; @i < 5; set @i,@i+1)
    if(@nome$[@i] == strcharinfo(0)){
    mapwarp "ordeal_1-1","ordeal_1-1",150,150;
    pcblockmove getcharid(3),1;    sleep2 2000;
    announce "Test.",bc_self;
    pcblockmove getcharid(3),0;
    end;
    }

RoLOT4A.png

 

4 answers to this question

Recommended Posts

Posted

pcblockmove doesnt exist in your emulator.

 

 

 

this?

BUILDIN_FUNC(pcblockmove)
{
	int id, flag;
	TBL_PC *sd = NULL;

	id = script_getnum(st,2);
	flag = script_getnum(st,3);

	if(id)
		sd = map_id2sd(id);
	else
		sd = script_rid2sd(st);

	if(sd)
		sd->state.blockedmove = flag > 0;
	return SCRIPT_CMD_SUCCESS;
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...