help on this script

kerbiii

New member
Messages
342
Points
0
everytime a character login their clone will spawn on a specific area

and everytime they logout their clone will also die

something like this:

OnPCLoginEvent:

Clone NAME "Prontera",150,150

OnPCLogoutEvent:

Killclone NAME

 
OnPCLoginEvent: // clone command here  end; OnPCLogoutEvent: killmonster "<map name>"; end;

Clone command : 
Code:
*clone "<map name>",<x>,<y>,"<event>",<char id>{,<master_id>{,<mode>{,<flag>,<duration>}}}This command creates a monster which is a copy of another player. Thefirst four arguments serve the same purpose as in the monster scriptcommand, The <char id> is the character id of the player to clone (playermust be online).If <master id> is given, the clone will be a 'slave/minion' of it.Master_id must be a character id of another online player.The mode can be specified to determine the behavior of the clone, itsvalues are the same as the ones used for the mode field in the mob_db. Thedefault mode is aggressive, assists, can move, can attack.Flag can be either zero or one currently. If zero, the clone is a normalmonster that'll target players, if one, it is considered a summonedmonster, and as such, it'll target other monsters. Defaults to zero.The duration specifies how long the clone will live before it isauto-removed. Specified in seconds, defaults to no limit (zero).Returned value is the monster ID of the spawned clone. If command fails,returned value is zero.
 
Example:

clone "prontera", 0, 0, strnpcinfo(3)+"::OnClone", getcharid(0);
i tried this one its not working did i miss something?

- script clone -1{
OnPCLoginEvent:
clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);
end;
}
 
Code:
-    script    clone    -1,{OnPCLoginEvent:    clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);    end;    OnPClogoutevent:    killmonster "prontera", strnpcinfo(3)+"::OnClone";    end;OnClone:    announce "????", 0;    end;}
 
-  script  clone  -1,{OnPCLoginEvent:  clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);  end;  OnPClogoutevent:  killmonster "prontera", strnpcinfo(3)+"::OnClone";  end;OnClone:  announce "????", 0;  end;}
how to make the clone passive and just walks arround

 
I haven't tested it but try this.

replace this

clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);
with

Code:
clone "prontera", 148, 183, strnpcinfo(3)+"::OnClone", getcharid(0), getcharid(0), 1;
 
I haven't tested it but try this.

replace this

clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);
with

clone "prontera", 148, 183, strnpcinfo(3)+"::OnClone", getcharid(0), getcharid(0), 1;
it makes the clone now a pet, how to make it just a normal monster that wander arround the town?

 
Code:
-    script    clone    -1,{OnPCLoginEvent:    clone "prontera", 148, 183, strnpcinfo(3)+"::OnClone", getcharid(0), 0, 1;    end;    OnPClogoutevent:    killmonster "prontera", strnpcinfo(3)+"::OnClone";    end;OnClone:    announce "????", 0;    end;}
 
Back
Top