Jump to content

Ofuda (catch dead monster & summon)


Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  08/23/13
  • Last Seen:  

User-defind item ofuda which could used in catching dead monster.

 

https://vimeo.com/74098869

 

NPC:

-	script	Ofuda	-1,{ 	
		
	end;
	OnUse:
		getmapxy(@mapname$,@mapx,@mapy,0);
		@SummonName$ = strcharinfo(0)+"'s monster";		
		switch(select("call","call back","catch")){
			case 1:
				killmonster @mapname$,"Ofuda::On"+@SummonName$;
				if (MonsterID > 0)
					summon @SummonName$,MonsterID,300000,"Ofuda::On"+@SummonName$;					
				break;
			case 2:
				killmonster @mapname$,"Ofuda::On"+@SummonName$;
				break;
			case 3:
				specialeffect2 EF_SPHERE;
				sleep2 3000;
				if(rand(100)<50){
					emotion e_omg,1;
					dispbottom "failure";
				}else{
					set MonsterID,killedrid;
					emotion e_heh,1;
					dispbottom "success";	
				}
			default:
				break;
		}
		end;
}

 

item_db2

Item number is 26000.

26000,Ofuda,Ofuda,2,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{doevent "Ofuda::OnUse";},{},{}
Edited by cwgxcqwr
  • Like 1
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...