Jump to content

Question

Posted (edited)

Hello rA , i have just learned scripting yesterday so forgive me if my script is a mess .

Here's my script :


- script Disable -1,{

OnInit:
disablenpc "WoE Warper";
end;
}


prontera,150,150,4 script WoE Warper 100,{
OnMon1900:
enablenpc "WoE Warper";
end;
OnMon2000:
disablenpc "WoE Warper";
end;
}
warp "prt_gld" ,132,64;
end;
}

is it possible to add one more OnInit like this :


OnInit:
waitingroom "WoE: Kriemhild ^FF0000[ ON ]^00FF00",0;
end;
}

Thanks For Helping :D

SlashGeeGee

Edited by SlashGeeGee

14 answers to this question

Recommended Posts

Posted
- script Disable -1,{

OnInit:
disablenpc "WoE Warper";
end;
}


prontera,150,150,4 script WoE Warper 100,{

OnInit:
    waitingroom "WoE: Kriemhild [ ON ]",0;
    end;

OnMon1900:
enablenpc "WoE Warper";
end;
OnMon2000:
disablenpc "WoE Warper";
end;
}
warp "prt_gld" ,132,64;
end;
}

Posted

- script Disable -1,{

OnInit:
disablenpc "WoE Warper";
end;
}


prontera,150,150,4 script WoE Warper 100,{

OnInit:
	waitingroom "WoE: Kriemhild [ ON ]",0;
	end;

OnMon1900:
enablenpc "WoE Warper";
end;
OnMon2000:
disablenpc "WoE Warper";
end;
}
warp "prt_gld" ,132,64;
end;
}

it doesn't work.

even if i re-arranged it here:


- script Disable -1,{

  OnInit:
disablenpc "WoE Warper";
end;
}


prontera,156,166,4 script WoE Warper 483,{
  OnMon2230:
enablenpc "WoE Warper";
end;

  OnMon2300:
disablenpc "WoE Warper";
end;
}
warp "prt_gld",135,64;
end;

  OnInit:
waitingroom "WoE: Kriemhild ^FF0000[ ON ]^00FF00",0;
end;


}

still not working :(

Posted (edited)

I'm not a script expert but I can tell it's wrong.

Try this, haven't really tested it tho.

-	script	Disable	-1,{
end;

OnInit:
disablenpc "WoE Warper";
end;

OnMon1900:
enablenpc "WoE Warper";
waitingroom "WoE: Kriemhild ^FF0000[ ON ]^00FF00",0;
end;

OnMon2000:
delwaitingroom;
disablenpc "WoE Warper";
end;
}

prontera,150,150,4	script	WoE Warper	100,{
warp "prt_gld",132,64;
end;
}

Edited by Magnetix
Posted

- script Disable -1,{

  OnInit:
disablenpc "WoE Warper";
end;
}


prontera,156,166,4 script WoE Warper 483,{
  OnMon2230:
enablenpc "WoE Warper";
end;

  OnMon2300:
disablenpc "WoE Warper";
end;
//} <--- you're ending the script right here hence why it's erroring
warp "prt_gld",135,64;
end;

  OnInit:
waitingroom "WoE: Kriemhild ^FF0000[ ON ]^00FF00",0;
end;


}

And that as they say, is that :P

Posted (edited)

- script Disable -1,{

  OnInit:
disablenpc "WoE Warper";
end;
}


prontera,156,166,4 script WoE Warper 483,{
  OnMon2230:
enablenpc "WoE Warper";
end;

  OnMon2300:
disablenpc "WoE Warper";
end;
//} <--- you're ending the script right here hence why it's erroring
warp "prt_gld",135,64;
end;

  OnInit:
waitingroom "WoE: Kriemhild ^FF0000[ ON ]^00FF00",0;
end;


}

And that as they say, is that :P

how can you show the waiting room IF the npc is disabled during initialization? see the script I posted above,

I don't know if it'll run and imo that's how your algoritm should be and it contains the fix for the warp syntax error.

Edited by Magnetix
Posted (edited)

- script Disable -1,{

  OnInit:
disablenpc "WoE Warper";
end;
}


prontera,156,166,4 script WoE Warper 483,{
  OnMon2230:
enablenpc "WoE Warper";
end;

  OnMon2300:
disablenpc "WoE Warper";
end;
//} <--- you're ending the script right here hence why it's erroring
warp "prt_gld",135,64;
end;

  OnInit:
waitingroom "WoE: Kriemhild ^FF0000[ ON ]^00FF00",0;
end;


}

And that as they say, is that :P

how can you show the waiting room IF the npc is disabled during initialization? see the script I posted above,

I don't know if it'll run and imo that's how your algoritm should be and it contains the fix for the warp syntax error.

I didn't meantion anything regarding the waiting room lol I merely stated the cause of the error in the script he changed.

-	   script  Disable -1,{
	end;

OnInit:
	disablenpc "WoE Warper";
	end;

OnMon1900:
	enablenpc "WoE Warper";
	end;

OnMon2000:
	disablenpc "WoE Warper";
	end;
}

prontera,150,150,4	  script  WoE Warper	  100,{

	goto L_warp;

OnInit:
	waitingroom "WoE: Kriemhild ^FF0000[ ON ]^00FF00",0;
	end;

L_warp:
	warp "prt_gld",132,64;
	end;
}

there...

and Magnetix, you're setting the waiting room in the wrong script.

Edited by F0xxy
Posted

Like he said, he started scripting very recently...even though other people indeed provided a re-written working script it's good that he understands where the problems were at.

No biggie mate :P

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