Jump to content
  • 0

Why wont this disguise event start?


Raikumi

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  06/28/12
  • Last Seen:  

http://upaste.me/raw/4915664e741f742

Everything works. I can start the event with the event CP, then the portal opens in caspen, then players are sent to ama_test. The disguise NPC is there, but when the portal closes, the event never starts.

Please help =\

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   5
  • Joined:  06/25/12
  • Last Seen:  

Just use this script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  06/28/12
  • Last Seen:  

Will do .

Btw this came up for the original script.

m[status]
m: Loading NPC file: npc/custom/events/disguise.txtK
m[Error]
m: 
script error on npc/custom/events/disguise.txt line 162
   parse_line: expect command, missing function name or calling undeclared function
  157 :  while (.@guessrepeat);
  158 :  setnpctimer 0;
  159 :  initnpctimer;
  160 :  setnpcdisplay "Disguise NPC",$monster;
  161 :  set $MonsterName$, strmobinfo(1,$monster);
*  162 :  'a'ctivatepset 1;
  163 :  npctalk "What's my name?";
  164 :  sleep 3000;
  165 :  npcwalkto 102,103;
  166 :  sleep 2000;
  167 :  npcwalkto 102,99;
m[Error]
m: npc_parsesrcfile: Unable to parse, probably a missing or extra TAB in file 'npc/custom/events/disguise.txt', line '387'. Skipping line...
* w1=ama_test
* w2=pvp
* w3=off
* w4=

I would still like a solution.

=========

For the script Eroces gave me I get this error:

m[Error]
m: 
script error on npc/custom/events/disguise.txt line 40
   parse_line: expect command, missing function name or calling undeclared function
   35 :	 if(select("Yes:No")==2) close;
   36 :	 if ($@EventON) {
   37 :	  set $@EventON,0; set $@Timer,0;
   38 :	  setnpctimer 0; stopnpctimer;
   39 :	  announce "A GM has decided to turn the Disguise Event off. As a result no further prizes will be given.",bc_map | bc_blue;
*   40 :	  'd'eletepset 1;
   41 :	  setnpcdisplay "Disguise Event",795;
   42 :	  close; }
   43 :	 set $@EventON,1; set $@Timer,1; setnpctimer 0; initnpctimer;
   44 :	 set $@ResetCounter,$@ResetCounter+1;
   45 :	 announce "The Disguise Event will begin in 3 minutes.",bc_all | bc_blue;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   5
  • Joined:  06/25/12
  • Last Seen:  

Are you using rAthena? I'm not having any problems with the script.

parse_line: expect command, missing function name or calling undeclared function

This comes up when a function you are trying to call doesn't exist.

Edited by Eroces
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

http://rathena.org/wiki/PCRE

you need this,....to ensure those command work

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  07/12/12
  • Last Seen:  

I had this problem in the past too, if your revision is older it doesn't recognize it. I had to update my revision

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