Jump to content

Script error.


Recommended Posts


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   3
  • Joined:  09/04/16
  • Last Seen:  

Im changing captain carocc into FreebieNPC, getting this errors. 

 

image.jpg

 

trunk/npc/re/jobs/novice/academy.txt

//===== rAthena Script =========================================================
//= Criatura Academy
//===== By: ====================================================================
//= Kisuka (1.0)
//===== Current Version: =======================================================
//= 2.0.0
//===== File Encoding ==========================================================
//= CP-949 (EUC-KR compatible). Do NOT read/save it as UTF-8.
//===== Description: ===========================================================
//= Teaches the player about the basics.
//= Also contains Novice skill quests for First Aid and Trick Dead.
//===== Additional Comments: ===================================================
//= 1.0.0 Initial Release. [Kisuka]
//= 1.0.1 Converted item constants to IDs and added hair coupon. [Kisuka]
//= 2.0.0 Converted from Hercules Script to rAthena Script. [Capuche]
//==============================================================================

// - Captain Carocc (Ship)
// -----------------------------------------------------------------------------
iz_int,100,91,3	script	Captain Carocc#iz_int	4_M_REINDEER,{
	if(#claimed == 1){ goto Claimed; }
	mes "[ Newbie Assistance ]";
	mes "Thank you for playing ^FF0000RO^000000.";
	mes "Please have these items as our welcome present.";
	next;
	
    .@weight = 100 * Weight / MaxWeight;
    if (50 <= .@weight) {
	 mes "[ Newbie Assistance ]";
     mes "You are currently overweight.";
	 mes "Current weight: "+.@weight;
	 mes "Please store some of your items in your storage.";
     close;
    }
	
	getitembound 14545,10;
	getitembound 12301,10; 
	getitembound 12523,10;
	getitembound 12522,10;
	emotion e_thx;
	set #claimed,1;
	sleep2 1000;
	warp "prontera",155,181;
	close;

Claimed:
	mes "[ Newbie Assistance ]";
	mes "Thank you for playing ^FF0000RO^000000.";
	mes "Please play moderately.";
	emotion e_no1;
	sleep2 1000;
	warp "prontera",155,181;
	close;
	end;
	
OnInit:
	waitingroom "Newbie Equipment!",0;
}

I tried to remove Captain carocc (by putting //) and replace it with "FREEBIES NPC", Im getting this errors.

 

image.jpg

//===== rAthena Script =========================================================
//= Criatura Academy
//===== By: ====================================================================
//= Kisuka (1.0)
//===== Current Version: =======================================================
//= 2.0.0
//===== File Encoding ==========================================================
//= CP-949 (EUC-KR compatible). Do NOT read/save it as UTF-8.
//===== Description: ===========================================================
//= Teaches the player about the basics.
//= Also contains Novice skill quests for First Aid and Trick Dead.
//===== Additional Comments: ===================================================
//= 1.0.0 Initial Release. [Kisuka]
//= 1.0.1 Converted item constants to IDs and added hair coupon. [Kisuka]
//= 2.0.0 Converted from Hercules Script to rAthena Script. [Capuche]
//==============================================================================

// - Captain Carocc (Ship)
// -----------------------------------------------------------------------------
//iz_int,100,91,3	script	Captain Carocc#iz_int	4_M_REINDEER,{
	if (Class == Job_Novice) {
		cutin "fly_trock", 2;
		if (!isbegin_quest(7471)) {
			mes "[Captain Carocc]";
			mes "Had a good dream?";
			mes "Soon, we will get to ^4d4fffIzlude^000000.";
			next;
			mes "[Captain Carocc]";
			mes "And you can talk to other people like you just talked to me.";
			next;
			cutin "tutorial01",3;
			mes "!- Information -!";
			mes "^4d4fffLeft mouse click allows basic game controls.";
			mes "Such as conversation with NPC, movement, and attacks.^000000";
			next;
			cutin "fly_trock",2;
			mes "[Captain Carocc]";
			mes "Many youngsters visit the ^4d4fffRune Midgard Kingdom^000000 to chase their dreams.";
			mes "Izlude is a satellite city of Prontera, the capital of the Rune Midgard Kingdom.";
			next;
			mes "[Captain Carocc]";
			mes "Izlude always welcomes young adventurers like you who have just started their journey to the World.";
			mes "You are one of them of course.";
			next;
			mes "[Captain Carocc]";
			mes "I would like to tell you more stories, but it's time to get ready for arrival.";
			mes "There is an academy in Izlude for newcomers like yourself.";
			next;
			mes "[Captain Carocc]";
			mes "Let me give you more details later.";
			mes "See you back at the harbor deck.";
			next;
			mes "[Captain Carocc]";
			mes "To get off this ship, you should enter the ^4d4fffShining Portal^000000 over there.";
			mes "All transportation is made through the portals.";
			setquest 7471;
			completequest 7471;
			close2;
			cutin "", 255;
			end;
		}
		mes "[Captain Carocc]";
		mes "Now, we are here in Izlude~";
		mes "Go through that ^4d4fffShining Portal^000000 and exit outside.";
		next;
		mes "[Captain Carocc]";
		mes "Let's talk more when we get off to the deck.";
		mes "There are lots of things I want to teach you.";
		close2;
		cutin "", 255;
		end;
	}
}
Edited by dnkip1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   0
  • Joined:  08/12/16
  • Last Seen:  

there is a chain quest who Capt. Carrocc gifted, you must delete other quest first if you want to use it as freebies npc, but idk where ..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

getitembound https://rathena.org/board/topic/71152-account-bound-items/ check mo to kung bakit nag eerror.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   3
  • Joined:  09/04/16
  • Last Seen:  

getitembound https://rathena.org/board/topic/71152-account-bound-items/ check mo to kung bakit nag eerror.

 

 

 

*getitembound <item id>,<amount>{,<account ID>};

*getitembound "<item name>",<amount>{,<account ID>};

 

So eto yung mali ko sir no? Pero okay na, ginawa ko nalang sya na new char starting items (inventory)

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
Reply to this topic...

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