Jump to content
  • 0

Help about this script!


Question

Posted
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;
}

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

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_
  • 0
Posted
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

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.

  • Recently Browsing   0 members

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