Jump to content
  • 0

Get item per Character ID


Question

9 answers to this question

Recommended Posts

  • 0
Posted

get 1 item per any character ?

prontera,0,0,0	script	npcccc	444,{
	if(!ONEITEMPERCHAR){
		mes "here is your item";
		ONEITEMPERCHAR = true;
		getitem(502,1);
	}else{
		mes "you already got your item";
	}
end;
}

 

get an item for specific character id ?

prontera,0,0,0	script	npcccc	444,{
	if(getcharid(0) == 1500000){//char id here
		mes "here is your item";
		getitem(502,1);
	}else{
		mes "your character id does not match!";
	}
end;
}

 

  • 0
Posted (edited)
2 hours ago, ittiphol said:

Sorry i mean 1 account get item 1 time

prontera,0,0,0	script	npcccc	444,{
	if(!#ONEITEMPERACC){
		mes "here is your item";
		#ONEITEMPERACC = true;
		getitem(502,1);
	}else{
		mes "you already got your item";
	}
end;
}

 

if you mean a specific account get 1 item one time

prontera,0,0,0	script	npcccc	444,{
	if(getcharid(3) != 2000000){//account id here
		mes "your account doesn't match";
		end;
	}
	if(!#ONEITEMPERACC){
		mes "here is your item";
		#ONEITEMPERACC = true;
		getitem(502,1);
	}else{
		mes "you already got your item";
	}
end;
}

 

Edited by sader1992
  • 0
Posted (edited)
2 hours ago, sader1992 said:

prontera,0,0,0	script	npcccc	444,{
	if(!#ONEITEMPERACC){
		mes "here is your item";
		#ONEITEMPERACC = true;
		getitem(502,1);
	}else{
		mes "you already got your item";
	}
end;
}

 

if you mean a specific account get 1 item one time


prontera,0,0,0	script	npcccc	444,{
	if(getcharid(3) != 2000000){//account id here
		mes "your account doesn't match";
		end;
	}
	if(!#ONEITEMPERACC){
		mes "here is your item";
		#ONEITEMPERACC = true;
		getitem(502,1);
	}else{
		mes "you already got your item";
	}
end;
}

 

Thank you i'll try

You are very considerate

This script i'll try apply to give VIP 1 Day per 1 account and just only one character because if VIP is end some user create new character then take a VIP from NPC again

it's now another character can use VIP too.

This script it's correct or not?

prontera,0,0,0    script    npcccc    444,{
    if(getcharid(3) != 2000000){//account id here
        mes "your account doesn't match";
        end;
    }
    if(!#ONEITEMPERACC){
        mes "here is your item";
        #ONEITEMPERACC = true;
        atcommand "@vip +24h "+strcharinfo(0)+"";
    }else{
        mes "you already got your item";
    }
end;
}

 

Edited by Mael
Use a codebox
  • 0
Posted
1 hour ago, Poring King said:

if( #Daily != gettime(5) ){
dispbottom "Gained Daily Items ...";
getitem 607,1;
set #Daily,gettime(5);
}

Thank you i'll try

You are very considerate

This script i'll try apply to give VIP 1 Day per 1 account and just only one character because if VIP is end some user create new character then take a VIP from NPC again

it's now another character can use VIP too.

if not use Item ID 

can use this or not

atcommand "@vip +24h "+strcharinfo(0)+"";
  • 0
Posted
2 hours ago, ittiphol said:

Thank you i'll try

You are very considerate

This script i'll try apply to give VIP 1 Day per 1 account and just only one character because if VIP is end some user create new character then take a VIP from NPC again

it's now another character can use VIP too.

if not use Item ID 

can use this or not


atcommand "@vip +24h "+strcharinfo(0)+"";



to check if VIP
 

if (vip_status(VIP_STATUS_ACTIVE)) {

	mes "Ok im VIP what should npc do next?";
	end;

} else {

      mes "Sorry, You are not a VIP or your VIP is expired.";
      end;


}

end;

 

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