Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // player 1
- var charname;
- function copyDataEvent(mode, msg) {
- if (mode === 77) { // unique number to avoid going over copydata sent from d2bot# or other setups like automule etc.
- charname = msg;
- }
- }
- charname = false;
- if (sendCopyData(null, player2profile, 77, me.profile)) { // returns false if the window with player2profile title doesn't exist
- delay(100); // delay to allow charname var to be changed by the event
- }
- print(charname);
- // player 2
- function copyDataEvent(mode, msg) {
- if (mode === 77) {
- // player 1 sent his own profile name as msg. send copydata to that profile
- sendCopyData(null, msg, 77, me.charname);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement