Jump to content
  • 0

Need Help with My Script


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

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
Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

- 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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

- 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 :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Did you add the tabs? Normally it should work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Did you add the tabs? Normally it should work.

yeah i tabbed them all already the error is on this code :

warp "prt_gld",135,64;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

SlashGeeGee

error with your script

2jwfg9.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

- 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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

- 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

@Magnetix your script works fine men thanks :D only problem is the waitingroom will only execute when a player click's the npc.

@Jam yeah that's it .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

- 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

I apologize but that wasn't meant for you F0xxy. My post was a continuation of your explanation that's why I quoted your post.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Thanks to both of you Guys /no1

Done .

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