Jump to content
  • 0

Headgear disguising


nadiros

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

Hello all !

I'm looking for a very special NPC.
It calls Headgear Combiner/Merger/Fusion.
Description:
You have two headgears 
Now you can go to the NPC and select: "I want the style of this hat for example angel wing in my apple of archer for example
Than your apple of archer change style by angel wing and the angel wing item will be deleted.

 

screen example

 

beforereset.jpg

Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

up!!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   1
  • Joined:  06/06/12
  • Last Seen:  

Posted · Hidden by Patskie, November 27, 2013 - No reason given
Hidden by Patskie, November 27, 2013 - No reason given

AUMM..

Link to comment

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

uppp!!! please guys anyone can help me to make it ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

sorry Skorm but its not that i need :S i need a npc who fusion 2 hat (fusion hat 1 equiped by hat 2 to take the style of hat 2 in hat 1 and hat 1 preserve his effect) and i want the fusion style will be permanant

its possible to make this script ?

Edited by nadiros
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   12
  • Joined:  10/19/13
  • Last Seen:  

sorry Skorm but its not that i need :S i need a npc who fusion 2 hat (fusion hat 1 equiped by hat 2 to take the style of hat 2 in hat 1 and hat 1 preserve his effect) and i want the fusion style will be permanant

its possible to make this script ?

omg! this script is too much xDDD

I hope you have few items for this combiner npc, because it will consume some body's eyes xDDD

 

anyways i made this as an example for you. And I think you need a script like this:

 

--If you really want to continue adding a similar script.. well you should read and understand NPC commands. xD

Let me know if you don't understand the script so I can guide you ^___^

prontera,156,182,5	script	test_npc	859,{
mes "Do you need to combine some items?";
next;
switch(select("YES PLEASE!:Maybe Later")){

	case 1: {
	switch(select("White Potion:")){
		case 1: { 
			if (countitem(505) > 0)	{
				if (countitem(502) > 0) {
				mes "There you go";
				delitem 502,1;
				delitem 505,1;
				getitem 504,1;
				close2;
				end;
				}else{ mes "Sorry you don't have the items in your inventory";
				close;}
				}else{ mes "Sorry you don't have the items in your inventory";
				close;}
				}
				}
			}
			
	case 2: { mes "Okay see yah";
				close2;
				end;	
				}	
	}
}
Edited by Veiler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

i explain you i want a npc NPC that will transfer normal headgears into costume headgears

 

i want use the costume tabs to disguise your look

Edited by nadiros
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   12
  • Joined:  10/19/13
  • Last Seen:  

i explain you i want a npc who show you your current headgear for example you equipe angel wing - sunglasse and pipe and you for example choose angel wing and u fusion youR angel wing by a headgear you have in your inventary and the angel wing take  the style of the choosen headgear without changing effect of the angel wing and it stay permanent (this npc exist in phili server T_T i really need it)

 

i want use the costume tabs to disguise your look

AHH!!! so for example:

NPC: Hello wanna combine your headgear?

Player: Yes.

NPC: Please choose what headgear you desire.

Player: Angel Wing : Red Scarf (choosed Angel Wing)

NPC: Okay now choose one of your headgear that you want to use:

       --Shows the headgears that the player wears---

      [ Top: Tiara       Mid: Devil Wings      Low: Pipe]

Player: (chose  Mid: Devil Wings )

NPC: (now the npc will ask what item will be merged in the inventory)

Player: (chose cigar from his inventory)

NPC: and the npc will change the View of Devil Wings like Angel Wings Permanently.

 

 

 

Tell me if this is the kind of function of your npc you want.

Edited by Veiler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

NPC: Hello wanna combine your headgear?

Player: Yes.

 

NPC: Please choose what headgear you desire.

Player: Angel Wing : Scarf (choosed devil wing) 

without this

 

NPC: Okay now choose one of your headgear that you want to use:
       --Shows the headgears that the player wears---

      [ Top: Tiara       Mid: Devil Wings      Low: Pipe]

Player: (chose  Mid: Devil Wings )

NPC: (now the npc will ask what item will be merged in the inventory)

Player: (chose cigar from his inventory)

NPC: and the npc will change the View of Devil Wings like Angel Wings Permanently.

 

 

 

Yessss i want this script !!

Edited by nadiros
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   12
  • Joined:  10/19/13
  • Last Seen:  

 

NPC: Hello wanna combine your headgear?

Player: Yes.

 

NPC: Please choose what headgear you desire.

Player: Angel Wing : Scarf (choosed devil wing) 

without this

 

NPC: Okay now choose one of your headgear that you want to use:

       --Shows the headgears that the player wears---

      [ Top: Tiara       Mid: Devil Wings      Low: Pipe]

Player: (chose  Mid: Devil Wings )

NPC: (now the npc will ask what item will be merged in the inventory)

Player: (chose cigar from his inventory)

NPC: and the npc will change the View of Devil Wings like Angel Wings Permanently.

 

 

 

Yessss i want this script !!

 

Okay ^___^ give me time i'm going to script it now for you.

this might take long so relax and lets have a cup of coffee ^___^

 

By the way im scripting an NPC for a friend like:

broadcast npc that needs a badge as a payment ^__^ if you want that also i can give it to you too  :D

Edited by Veiler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

thanks you veiler i really appreciate 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   12
  • Joined:  10/19/13
  • Last Seen:  

thanks you veiler i really appreciate 

Hi nadiros, your request is almost done :)

but i really have to sleep 5:21 am xD

 

i'll post here the script whenever i finished it as soon a possible ^__^

i put screen shoot where i paused scripting for now. xD

 

Untitled_zps87075110.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

amazing !!! thanks man 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   12
  • Joined:  10/19/13
  • Last Seen:  

amazing !!! thanks man 

HEY!!! I Just remember this similar to ~AnnieRuru~'s script

if this is the script you we're finding for, then I just consume my entire eyes xDDD

 

Anyways, this is the script i found from ~AnnieRuru~ way back 2011... xD

//disguises headgear as another headgear from list
//to add headgear on list, user must have (and loses) the item
//and 5 TCGs
//updated to reset char's look
prontera,145,174,4	script	Headgear Disguise	741,{
	mes "[Headgear Disguise]";
	mes "Hi, I can disguise your headgear to ";
	mes "Look like any headgear you own.";
	mes "But in order for me to do so,";
	mes "I will need to take that headgear";
	mes "And I will need five TCG cards";
	mes "But once I take the headgear";
	mes "You can disguise your headgear";
	mes "Without any extra TCG cards.";
	next;
	switch( select( "Existing Headgears:Add a New Headgear:Reset Look" ) ) {
		set .@m, select("Upper Headgear:Middle Headgear:Lower Headgear");
		case 1:
			explode .@headgearlist$, getd("#headgearlist"+ .@m +"$"), ":";
			set .@size, getarraysize( .@headgearlist$ );
			for ( set .@n, 1; .@n < .@size; set .@n, .@n +1 )
				set .@list$, .@list$ +":"+ getitemname( atoi( .@headgearlist$[.@n] ) );
			set .@s, select(.@list$) -1;
			set .@look, getiteminfo( atoi( .@headgearlist$[.@s] ), 11 );
			if ( getequipid( .position[.@m] ) > 0 )
				setlook .look[.@m], .@look;
			setd "headgear_disguise"+ .@m, .@look;
			mes "[Headgear Disguise]";
			mes "We're all set. Come back any time!";
			close;
		case 2:
			if ( getstrlen( getd("#headgearlist"+ .@m +"$") ) > 245 ) {
				mes "[Headgear Disguise]";
				mes "You can't have anymore headgear saved";
				close;
			}
			getinventorylist;
			while ( .@i < @inventorylist_count ) {
				if ( getiteminfo( @inventorylist_id[.@i], 5 ) & .inv_view[.@m] ) {
					set .@headgear[.@n], @inventorylist_id[.@i];
					set .@headgear$, .@headgear$ + getitemname( @inventorylist_id[.@i] ) +":";
					set .@n, .@n + 1;
				}
				set .@i, .@i +1;
			}
			select .@headgear$;
			mes "[Headgear Disguise]";
			set .@id, .@headgear[ @menu -1 ];
			explode .@headgearlist$, getd("#headgearlist"+ .@m +"$"), ":";
			set .@size, getarraysize( .@headgearlist$ );
			for ( set .@i, 1; .@i < .@size; set .@i, .@i +1 ) {
				if ( atoi( .@headgearlist$[.@i] ) == .@id ) {
					mes "You already have this headgear saved!";
					close;
				}
			}
			mes "Are you sure? I will take your";
			mes getitemname(.@id) +" and five TCG cards now.";
			next;
			set .@sure, select("No, STOP!:Yes, I'm sure");
			mes "[Headgear Disguise]";
			if ( .@sure == 1 )
				mes "Alright, let me know when you are sure!";
			else if ( countitem(7227) < 5 )
				mes "You need 5 TCG cards to use this!";
			else if ( countitem(.@id) < 1 ) {
				mes "Do you think I'm an idiot?";
				mes "You don't have any "+ getitemname(.@id) +"!";
			}
			else {
				delitem 7227, 5;
				delitem .@id, 1;
				setd "#headgearlist"+ .@m +"$", getd("#headgearlist"+ .@m +"$") +":"+ .@id;
				if ( getequipid( .position[.@m] ) != -1 )
					setlook .look[.@m], getiteminfo(.@id,11);
				setd "headgear_disguise"+ .@m, getiteminfo(.@id,11);
				mes "Alright, we're all set!";
			}
			close;
		case 3:
			if ( getequipid( .position[.@m] ) > 0 )
				setlook .look[.@m], getiteminfo( getequipid( .position[.@m] ), 11 );
			else
				setlook .look[.@m], 0;
			setd "headgear_disguise"+ .@m, 0;
			close;
	}
OnInit:
	setarray .look[1],4,5,3;
	setarray .position[1],1,9,10;
	setarray .inv_view[1],256,512,1;
	end;
OnPCLoginEvent:
	for ( set .@i, 1; .@i <= 3; set .@i, .@i +1 ) {
		if ( getequipid( .position[.@i] ) != -1 && getd("headgear_disguise"+ .@i ) > 0 ) {
			setlook .look[.@i], getd("headgear_disguise"+ .@i );
		}
	}
	end;
}

And this is the other one I don't know where this is for

 

ohhh.. i figured out that this is the patch for the emulator to make npc work

--- pc.c	(revision 14829)
+++ pc.c	(working copy)
@@ -7234,27 +7234,32 @@
 	}
 	//Added check to prevent sending the same look on multiple slots ->
 	//causes client to redraw item on top of itself. (suggested by Lupus)
-	if(pos & EQP_HEAD_LOW) {
-		if(id && !(pos&(EQP_HEAD_TOP|EQP_HEAD_MID)))
-			sd->status.head_bottom = id->look;
-		else
-			sd->status.head_bottom = 0;
-		clif_changelook(&sd->bl,LOOK_HEAD_BOTTOM,sd->status.head_bottom);
+	{
+		int h_dis1 = pc_readglobalreg( sd, "headgear_disguise1" );
+		int h_dis2 = pc_readglobalreg( sd, "headgear_disguise2" );
+		int h_dis3 = pc_readglobalreg( sd, "headgear_disguise3" );
+		if(pos & EQP_HEAD_LOW ) {
+			if(id && !(pos&(EQP_HEAD_TOP|EQP_HEAD_MID)))
+				sd->status.head_bottom = id->look;
+			else
+				sd->status.head_bottom = 0;
+			clif_changelook(&sd->bl,LOOK_HEAD_BOTTOM, h_dis3 > 0 ? h_dis3 : sd->status.head_bottom);
+		}
+		if(pos & EQP_HEAD_TOP ) {
+			if(id)
+				sd->status.head_top = id->look;
+			else
+				sd->status.head_top = 0;
+			clif_changelook(&sd->bl,LOOK_HEAD_TOP, h_dis1 > 0 ? h_dis1 : sd->status.head_top);
+		}
+		if(pos & EQP_HEAD_MID ) {
+			if(id && !(pos&EQP_HEAD_TOP))
+				sd->status.head_mid = id->look;
+			else
+				sd->status.head_mid = 0;
+			clif_changelook(&sd->bl,LOOK_HEAD_MID, h_dis2 > 0 ? h_dis2 : sd->status.head_mid);
+		}
 	}
-	if(pos & EQP_HEAD_TOP) {
-		if(id)
-			sd->status.head_top = id->look;
-		else
-			sd->status.head_top = 0;
-		clif_changelook(&sd->bl,LOOK_HEAD_TOP,sd->status.head_top);
-	}
-	if(pos & EQP_HEAD_MID) {
-		if(id && !(pos&EQP_HEAD_TOP))
-			sd->status.head_mid = id->look;
-		else
-			sd->status.head_mid = 0;
-		clif_changelook(&sd->bl,LOOK_HEAD_MID,sd->status.head_mid);
-	}
 	if(pos & EQP_SHOES)
 		clif_changelook(&sd->bl,LOOK_SHOES,0);
 	if( pos&EQP_GARMENT )

Anyways Thanks ~AnnieRuru~ <3<3

you save my eyes @_@ <3

http://www.eathena.ws/board/index.php?s=4e2314abf2890d2f8c0989711439ae5f&showtopic=271054&st=15

Edited by Veiler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

thank youuuu

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