Jump to content
  • 0

[Error]: npc_event: event not found [FAKE_NPC::OnTest]


Dolphin86

Question


  • Group:  Members
  • Topic Count:  256
  • Topics Per Day:  0.06
  • Content Count:  707
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

Error as shown above, request help how should it be ?

Script:

Spoiler

function	script	craft	{

	soundeffect "menu.wav",0;
	mes "Select categories";
	next;
	switch(select("- Weapons And Tools:- Armor:- Cancel")){
	
		case 1:
			next;
			soundeffect "menu.wav",0;
			switch(select("- Stone Knife:- Make Shift Axe: - Cancel")){
				case 1:
					soundeffect "menu.wav",0;
					if(countitem(40000) < 4 ) {
						mes "^ff0000 Require 4 Stone Pebbles ^000000";
						close3;
						}
						else {
							soundeffect "menu.wav",0;
							mes "^8fce00 Require 4 Stone Pebbles ^000000";
							next;
							switch(select("- Start Crafting: - Cancel")){
								case 1:
									mes "Crafting";
									soundeffect "gathering.wav",0;
									addtimer 11,strnpcinfo(0)+"::OnTest";
									progressbar "0xFFFFFF",11;
									next;
									soundeffect "menu.wav",0;
									delitem 40000, 4;
									getitem 40004, 1;
									wep_points += 1;
									dispbottom "Gain +1 Weapon Crafting Points";
									close3;
									
								case 2:
									goto cancel;
							}
						}
				case 2:
					soundeffect "menu.wav",0;
					if(countitem(40024) < 1 && countitem(40031) < 1 && countitem(40023) < 1){
						mes "^ff0000 Require";
						mes "1 Big Boulder";
						mes "1 Green Stalk";
						mes "1 Green Tree Branch ^000000";
						close3;
						}
						
							soundeffect "menu.wav",0;
							mes "^8fce00 Require";
							mes "1 Big Boulder";
							mes "1 Green Stalk";
							mes "1 Green Tree Branch ^000000";
							next;
							switch(select("- Start Crafting: - Cancel")){
								case 1:
									mes "Crafting";
									soundeffect "gathering.wav",0;
									addtimer 11,strnpcinfo(0)+"::OnTest";
									progressbar "0x00ff00",11;
									next;
									soundeffect "menu.wav",0;
									delitem 40024, 1;
									delitem 40031, 1;
									delitem 40023, 1;
									getitem 40030, 1;
									wep_points += 1;
									dispbottom "Gain +1 Weapon Crafting Points";
									close3;
									
								case 2:
									goto cancel;
							}
						
				case 3:
					goto cancel;
			}
		case 2:
			next;
			soundeffect "menu.wav",0;
			switch(select("- Rough Skin Armor: - Cancel")){
				
				case 1:
					if(countitem(40010) < 10 ) {
						mes "^ff0000 Require";
						mes "10 Monster Skin ^000000";
						close3;
						}
						else {
							soundeffect "menu.wav",0;
							mes "^8fce00 Require 10 Monster Skin ^000000";
							next;
							switch(select("- Start Crafting: - Cancel")){
								case 1:
									mes "Crafting";
									soundeffect "gathering.wav",0;
									addtimer 11,strnpcinfo(0)+"::OnTest";
									progressbar "0x00ff00",11;
									soundeffect "menu.wav",0;
									delitem 40010, 10;
									getitem 40018, 1;
									armor_points += 1;
									dispbottom "Gain +1 Armor Crafting Points";
									close3;
								case 2:
									goto cancel;
							}
						}
				case 2:
					goto cancel;
			}
		case 3:
			goto cancel;
	}
	
cancel:
	soundeffect "menu.wav",0;
	mes "craft cancel";
	close3;

OnTest:
	end;
}

 

Thank You..

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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