Jump to content
  • 0

Help me! problem with my script


Question

Posted (edited)

my script

mellina,33,78,4	script	Kinh Doanh Nhà Đất::guildreward	899,{
mes "[^0000FFKinh Doanh Nhà Đất^000000]";
mes "Ta đang có miếng đất trống đây ngươi có muốn mua không?";
next;
switch(select("Guild Home" ,
			( getgroupid() < 99) ?"":"^FF0000[GM]^000000 Set Winner Guild" )
){
	case 1:
	if (getcharid(2) != .GuildID)
	{
		mes "[^0000FFKinh Doanh Nhà Đất^000000]";
		mes "Dường như ngươi đến trể mất rồi tên GM Server mRO hắn mua đứt miếng đất này rồi";
		mes "Hình như hắn mua cho Guild nào thắng WoE đó. Hmm. Mà hình như ngươi không nằm trong guild chiến thành WoE";
		mes "Thôi by gặp lại sau nhé ";
		break;
	}
	else
	{
		warp "home_r01",0,0;
		break;
	}
	case 2:
	goto GMCustom;
}
close;

GMCustom:
mes "Vui lòng nhập ID của guild đc phép vào GUILD HOUSE";
mes "Guild hiện đang được vào GUILD HOUSE là guld ^FF0000" + getguildname(.GuildID) + "^000000 có ID ^FF0000" + .GuildID + "^000000";
next;
input .@guild_id;
set .GuildID,.@guild_id;
mes "Done !";
close;

/* Set guild id */
OnInit:
set .GuildID,1;


/* check when pc warp to map */
OnPCLoadMapEvent:
//if (getgroupid() > 0) end;
if (strcharinfo(3) == "home_r01")
{
	if (getcharid(2) != .GuildID)
	{
		mes "[^0000FFKinh Doanh Nhà Đất^000000]";
		mes "Quá hạn thanh toán ....";
		close2;
		savepoint "mellina",85,55;
		atcommand "@load";
	}
}
}

home_r01	mapflag	 loadevent
home_r01	mapflag	nomemo

Why if have 2 line below script will return error?

   	 mes "[^0000FFKinh Doanh Nhà Đất^000000]";
		mes "Quá hạn thanh toán ....";
		close2;

error

[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: strcharinfo (1 parameter):
[Debug]: Data: number value=3
[Debug]: Source (NPC): Kinh Doanh Nhà Đất at mellina (33,78)

Edited by hthuong

6 answers to this question

Recommended Posts

Posted

I think it's the 'mes' command which causes the error off-screen; try changing that to 'dispbottom' and see if you still get the error. If you do, then yeah, you'll need a new NPC (with no coordinates).

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...