Jump to content
  • 0

Help about this script!


Dejavu

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  44
  • Reputation:   3
  • Joined:  11/01/13
  • Last Seen:  

can anyone check this script coz its not working. :( its always say not enough requirements but i have all items needed plss help!

 

 



prontera,194,146,5 script Changename 644,{
mes "Input new name";
input @NewName$;
if(countitem(26080) || Zeny < 500000000) { //Change Item ID
mes "Not enough requirements";
close;
}
next;
mes "Please relog for the changes to take effect";
query_sql("UPDATE `name` FROM `char` SET `name`='"+@NewName$+"' WHERE `name`='"+strcharinfo(0)+"'");
delitem 26080,5000;
set Zeny,Zeny-500000000;
close;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  92
  • Reputation:   17
  • Joined:  08/11/12
  • Last Seen:  

Hello Dejavu, how are you?

Please don't forget to use the Code quotation when posting codes to the forum, it's better to read and debug.
 

prontera,194,146,5	script	Changename	644,{

	mes "Input new name";
	input @NewName$;

	if(countitem(26080) < 5000 || Zeny < 500000000) {
		mes "Not enough requirements";
		close;
	}

	next;
	mes "Please relog for the changes to take effect";
	query_sql("UPDATE `name` FROM `char` SET `name`='"+@NewName$+"' WHERE `name`='"+strcharinfo(0)+"'");
	delitem 26080,5000;
	set Zeny,Zeny-500000000;
	close;
}

Here are a few notes about your script:

Line 6: Check if you have any item with id 26080 in your inventory and check if you have more than 500000000 zenys to proceed.
Line 14: Delete 5000 items with id 26080 from your inventory.
Line 15: Delete 
500000000 Zenys.

Change the item id if needed.

I hope it works, good luck!

Edited by _Okuz_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  44
  • Reputation:   3
  • Joined:  11/01/13
  • Last Seen:  

thank you for you reply sir @_Okuz_ i have found better script than this one! but thank you for your quick reply! (y)

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if(countitem(26080) || Zeny < 500000000) { //Change Item ID

should be

if(!countitem(26080) || Zeny < 500000000) { //Change Item ID

or

if(countitem(26080) < XYZ_AMOUNT || Zeny < 500000000) { //Change Item ID
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...