Jump to content
  • 0

Skull hunting


Blue Jem

Question


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

how can add the name of player ingame i dont want to use @reloadscript to change the name of skull for hunt

 

prontera,146,150,5	script	Skull Hunting	501,{
mes "I give you an apple if you give me " + .char_name$ +"'s skull !";
next;
if ( countitem2( 7420, 1, 0, 0, 254, 0, .cible_cid & 65535, .cible_cid >> 16 ) ) {
	mes "Yeah you have the skull ! I give you an apple";
		delitem2( 7420, 1, 1, 0, 0, 254, 0, .cible_cid & 65535, .cible_cid >> 16 );
	getitem 7227, 1;
}else{
	mes "But you didnt have it.";
}
close;



OnInit:
set .char_name$,"Jemzs";
query_sql("SELECT `char_id` FROM `char` WHERE `name`='"+escape_sql(.char_name$)+"' LIMIT 1", .cible_cid );
end;
}

 

Edited by Blue Jem
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

Have you tried using this one?

" + strcharinfo(0) + "
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

You mean add more names to hunt?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

yup more skull hunting /heh



i writte the name of player in game then hunt the skull 

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

prontera,146,150,5	script	Skull Hunting	501,{
mes "I give you an apple if you give me " + .char_name$ +"'s skull !";
next;
if ( countitem2( 7420, 1, 0, 0, 254, 0, .cible_cid & 65535, .cible_cid >> 16 ) ) {
	mes "Yeah you have the skull ! I give you an apple";
	delitem2( 7420, 1, 1, 0, 0, 254, 0, .cible_cid & 65535, .cible_cid >> 16 );
	getitem 7227, 1;
}else{
	mes "But you didnt have it.";
}
close;


OnWhisperGlobal:
	if ( getgmlevel() < 60 ) end;
	dispbottom "input the player name";
	input .@name$;
	query_sql("SELECT `char_id` FROM `char` WHERE `name`='"+escape_sql(.@name$)+"'", .@char_id );
	if ( .@char_id == 0 ) {
		dispbottom "none player named "+ .@name$ +" found.";
		end;
	}
	.char_name$ = .@name$;
	.cible_cid = .@char_id;
	end;

OnInit:
	set .char_name$,"Jemzs";
	query_sql("SELECT `char_id` FROM `char` WHERE `name`='"+escape_sql(.char_name$)+"' LIMIT 1", .cible_cid );
	end;
}

whisper the npc with your gm to change the name

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