Jump to content
  • 0

question, NPC line Script


Question

Posted (edited)

Hello all I'm getting this error. ;)

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/warrune.txt', line '13'. Stopping...

* w1=pvp_y_2-2,118,132,4 script Runes 403,2,2,{

* w2=

* w3=

* w4=

Here is the source syntax:

pvp_y_2-2,118,132,4 script Runes 403,2,2,{

I'm putting the npc in all PVP areas in my server.

Can you guys tell me where did it went wrong? ^^ did the map name cause it? got the map name by typing /where on the map.

Here are my Duplicates for this npc:

pvp_y_2-1,136,118,4, duplicate(Runes) Runes#1 403,2,2

pvp_y_2-1,167,177,4, duplicate(Runes) Runes#2 403,2,2

pvp_y_2-1,150,268,4, duplicate(Runes) Runes#3 403,2,2

pvp_y_2-2,138,77,4, duplicate(Runes) Runes#4 403,2,2

pvp_y_1-2,138,77,4, duplicate(Runes) Runes#5 403,2,2

pvp_y_1-2,118,132,4, duplicate(Runes) Runes#6 403,2,2

pvp_y_1-1,136,118,4, duplicate(Runes) Runes#7 403,2,2

pvp_y_1-1,167,177,4, duplicate(Runes) Runes#8 403,2,2

pvp_y_1-1,150,268,4, duplicate(Runes) Runes#9 403,2,2

pvp_y_3-1,136,118,4, duplicate(Runes) Runes#10 403,2,2

pvp_y_3-1,167,177,4, duplicate(Runes) Runes#11 403,2,2

pvp_y_3-1,150,268,4, duplicate(Runes) Runes#12 403,2,2

Thanks.

Edit------

Oh by the way I also tried this earlier but still did not work, got the same error.

pvp_y_2-2,118,132,4, script Runes 403,2,2,{

Edited by wisekreker

5 answers to this question

Recommended Posts

Posted (edited)

It could be the forum changing it, but are those spaces or "tabs" in between :

4 and script

script and Runes

Runes and 403

? If they are spaces, change it to a tab by hitting the Tab key.

Edited by Bake Mono
Posted
It could be the forum changing it, but are those spaces or "tabs" in between : 4 and script script and Runes Runes and 403 ? If they are spaces, change it to a tab by hitting the Tab key.

They are tabs. ;)

Posted

You might want to double/triple check that. I just tried:

pvp_y_2-2,118,132,4	script	Runes	403,2,2,{

using proper tabs between 4, script, runes, and 403, and it loaded just fine. When replaced with spaces, it received the same error as you had (as it should) o.o

  • Upvote 1
Posted (edited)

They are tabs. The forums just skipped the tabs when I pasted it. I actually replaced the map with prontera, and it worked fine. I had it deployed in prontera right now just for testing. It's working fine in prontera but it skipped all the duplicates. ;)

Someone help? ^^

Thanks very kindly.

Edit-----

btw, the one in prontera right now that works fine is like this;

prontera,118,132,4,	script	Runes	403,2,2,{

Edited by wisekreker
Posted (edited)
pvp_y_3-1,150,268,4, duplicate(Runes) Runes#12 403,2,2

Try deleting the "," after the 4 so it would be like

pvp_y_3-1,150,268,4 duplicate(Runes) Runes#12 403,2,2

Also does your npc need the ,2,2 after the npc sprite? Are you using your npc to detect nearby players?

Edited by nelsontyh

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