Jump to content

Recommended Posts

Posted

Market Clone (No SRC modification needed)


This is exactly the same concept as the original file by Annieruru/Dastgir which is found on this post : 

 

@marketclone - creates a clone of your self as if you are making a chatroom.

@marketkill - removes the clone you spawned.

 

Yes, there is no need for SRC modification. This is purely done script wise but this will only work for latest server files. Any server files later than October 2, 2022 shouldn't have any troubles running this script. Otherwise, you are required to apply this commit: https://github.com/rathena/rathena/commit/9c2576f47ac12f54738bc714b858fde3a9d6315b to work.

Any issues regarding the script, leave me a message or tag me on the support page of this script. If there is any good suggestions for improvements 

I do wont give support if compatibility is the issue. Compatibility is your responsibility. Use at your own risk.


  • Submitter
  • Submitted
    06/22/23
  • Category
  • Video
  • Content Author
    pajodex, Annieruru, Dastgir, Napster

 

  • MVP 1
  • Like 3
  • 2 weeks later...
Posted
16 hours ago, Frost Diver said:

Hi,

Tried the script, i was able to spawn the clone, but cannot remove it by using @marketkill. same goes to when i relog, the clone is still there.

Running on updated rathena.

Regards.

Capture.JPG

This is confirmed and should now be fixed on the latest version.

 

market_clone_no_src_modification.txt

  • Upvote 2
Posted

Is it possible to make this clone use healing buff skill? it is possible to configure which class to clone which buff it gives to do like a battle assistant I can pay for that sorry my english

Posted
3 hours ago, luizinhomt said:

Is it possible to make this clone use healing buff skill? it is possible to configure which class to clone which buff it gives to do like a battle assistant I can pay for that sorry my english

This clone is not intended for that. That is a totally different topic. You can try to make a custom pet that looks like a player and give it actions to support the players...I think that's the closest thing you can get from your request. You dont need to pay anyone for that.

  • Like 1
Posted

Thank you for this. Suggestion, maybe you could make the pub a private pub instead and then the response message would be sent as a private message to a player who will be clicking on the private pub (chatroom name).

Posted
1 hour ago, micosanityyy said:

Thank you for this. Suggestion, maybe you could make the pub a private pub instead and then the response message would be sent as a private message to a player who will be clicking on the private pub (chatroom name).

This is already redundant to the current feature where when you enter the chat room, it will automatically post a message in the chat room... I don't see the need of redo-ing it. Anyways, this is a free release, anyone can make changes as needed.

Posted
On 7/23/2023 at 9:55 PM, pajodex said:

This is already redundant to the current feature where when you enter the chat room, it will automatically post a message in the chat room... I don't see the need of redo-ing it. Anyways, this is a free release, anyone can make changes as needed.

I thought it was redundant too up until I realized players are sending messages inside the chat room thinking the original player of the clone are receiving their messages which beats the purpose of marketclone if the 2 players do not get to talk to each other because the other is thinking that the original player of the clone is not replying inside the chat room. Anyway it's just a suggestion based on the original concept of marketclone feature. I'm thankful for your free release bro 🙂

Posted (edited)

 

1 hour ago, micosanityyy said:

I thought it was redundant too up until I realized players are sending messages inside the chat room thinking the original player of the clone are receiving their messages which beats the purpose of marketclone if the 2 players do not get to talk to each other because the other is thinking that the original player of the clone is not replying inside the chat room. Anyway it's just a suggestion based on the original concept of marketclone feature. I'm thankful for your free release bro 🙂

You can alternately solve this problem by adding prefix on the spawned clone.
Just edit this part :

 

Spoiler

 

Nvm, this might break the script...

 

just do this instead,

-	script	spawnclone	-1,{
	if ( atoi(strnpcinfo(2)) == getcharid(0) ) {
		switch(select("Edit Chatroom name","Edit Response message","Remove market clone")) {
		case 1:
			mes "Current Chatroom name : ^0000ff"+ .chatroomname$ +"^000000";
			next;
			select("Modify");
			mes "Enter new Chatroom name:";
			next;
			input .@temp$;
			mes "Confirm: ^0000ff"+ .@temp$ +"^000000?";
			next;
			select("Yes");
			mes "Done!";
			close2;
			.chatroomname$ = .@temp$;
			delwaitingroom;
-			waitingroom .chatroomname$, 2, strnpcinfo(3)+"::OnMessage", 1;
+			waitingroom .chatroomname$, 0;
			break;
		case 2:
			mes "Current Response message : ^0000ff"+ .message$ +"^000000";
			next;
			select("Modify");
			mes "Enter new response message:";
			next;
			input .@temp$;
			mes "Confirm: ^0000ff"+ .@temp$ +"^000000?";
			next;
			select("Yes");
			mes "Done!";
			close2;
			.message$ = strcharinfo(0)+": "+ .@temp$;
			break;
		case 3:
			mes "Are you sure you want to remove your clone?";
			next;
			select("Yes");
			mes "Removing your clone...";
			close2;
			@marketclone = false;
			OnKillClone:
			delwaitingroom;
			disablenpc(strnpcinfo(3));
			break;
		}
	}
+	dispbottom .message$;
	end;

-OnMessage:
-	chatmes .message$;
-	end;

OnSpawnClone:
	query_sql( " SELECT `class`, `hair`, `hair_color`, `clothes_color`, `head_top`, `head_mid`, `head_bottom`, `sex` FROM `char` WHERE `char_id` = "+ .cid, .@class, .@hair, .@hair_color, .@clothes_color, .@head_top, .@head_mid, .@head_bottom, .@sex$ );
	.GID =  getnpcid(0,.npc$);
	setunitdata .GID, UNPC_CLASS, .@class;
	setunitdata .GID, UNPC_HAIRSTYLE, .@hair;
	setunitdata .GID, UNPC_HAIRCOLOR, .@hair_color;
	setunitdata .GID, UNPC_CLOTHCOLOR, .@clothes_color;
	setunitdata .GID, UNPC_HEADTOP, .@head_top;
	setunitdata .GID, UNPC_HEADMIDDLE, .@head_mid;
	setunitdata .GID, UNPC_HEADBOTTOM, .@head_bottom;
	setunitdata .GID, UNPC_SEX, ((.@sex$ == "M")?1:0);
	setunitdata .GID, UNPC_LOOKDIR, DIR_SOUTH;	
-	waitingroom .chatroomname$, 2, strnpcinfo(3)+"::OnMessage", 1;
+	waitingroom .chatroomname$, 0;
	end;
}
Edited by pajodex
Posted

could add just like in the original, when another character enters the chat leaves a message, a message as if talking in private appears on the character owner of the clone. and it already exists in the npc, unfortunately the system is not working

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...