Jump to content
  • 0

Get item per Character ID


ittiphol

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Get item per Character ID not ID Account

Please help some script

 

Thank you.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Thank you for script

Sorry i mean 1 account get item 1 time

Edited by ittiphol
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Sorry i mean 1 account get item 1 time

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

if( #Daily != gettime(5) ){
dispbottom "Gained Daily Items ...";
getitem 607,1;
set #Daily,gettime(5);
}
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

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)+"";
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

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;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Thank you. Master

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