ittiphol Posted October 27, 2020 Posted October 27, 2020 Get item per Character ID not ID Account Please help some script Thank you. Quote
0 sader1992 Posted October 27, 2020 Posted October 27, 2020 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; } Quote
0 ittiphol Posted October 27, 2020 Author Posted October 27, 2020 (edited) Thank you for script Sorry i mean 1 account get item 1 time Edited October 27, 2020 by ittiphol Quote
0 ittiphol Posted October 27, 2020 Author Posted October 27, 2020 Sorry i mean 1 account get item 1 time Quote
0 sader1992 Posted October 27, 2020 Posted October 27, 2020 (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 October 27, 2020 by sader1992 Quote
0 ittiphol Posted October 27, 2020 Author Posted October 27, 2020 (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 October 27, 2020 by Mael Use a codebox Quote
0 Poring King Posted October 27, 2020 Posted October 27, 2020 if( #Daily != gettime(5) ){ dispbottom "Gained Daily Items ..."; getitem 607,1; set #Daily,gettime(5); } Quote
0 ittiphol Posted October 27, 2020 Author Posted October 27, 2020 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)+""; Quote
0 Poring King Posted October 28, 2020 Posted October 28, 2020 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; Quote
Question
ittiphol
Get item per Character ID not ID Account
Please help some script
Thank you.
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.