potpottin 0 Posted October 6, 2020 Looking for freebie npc with unique id Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted October 6, 2020 before I lock this topic, I'm curious to know what is unique id also yeah, all freebies and attendance script etc uses *getitembound type IBT_CHARACTER to prevent transfer the item to other character Quote Share this post Link to post Share on other sites
0 xJhay 8 Posted October 6, 2020 //===== rAthena Script ======================================= //= Freebies NPC with Gepard Function supported //===== By: ================================================== //= BeWan //https://rathena.org/board/profile/62232-bewan/ //===== Current Version: ===================================== //= 1.0 //===== Description: ========================================= //= this freebies npc is supported gepard function " unique_id " //= you can add multiple reward items //============================================================ prontera,150,150,4 script Freebies NPC 123,{ .@unique_id$ = get_unique_id(); if(getd("$ID_" + .@unique_id$) > 0 || #FreebiesReward > 0){ mes "[Freebies NPC]"; mes "You have already claimed your Freebies."; close; } mes "[Freebies NPC]"; mes "Here's your Freebies. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #FreebiesReward = 1; $freebies_count -= 1; for (.@i = 0; .@i < getarraysize(.items); .@i += 2) getitem .items[.@i],.items[.@i+1]; if ($freebies_count == 0) $reward_status = 1; end; OnInit: setarray .items, 501,10,502,10; end; } I see this one on rathena, maybe he's referring to this one. 1 AnnieRuru reacted to this Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted October 6, 2020 1. .@unique_id$ = get_unique_id(); I thought gepard uses integer ?? 2. if(getd("$ID_" + .@unique_id$) > 0 || #FreebiesReward > 0){ mes "[Freebies NPC]"; mes "You have already claimed your Freebies."; close; } mes "[Freebies NPC]"; mes "Here's your Freebies. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #FreebiesReward = 1; erm, I am holding my laughter right now, but isn't this only 1 player in the whole server can claim this reward ?? Quote Share this post Link to post Share on other sites
Looking for freebie npc with unique id
Share this post
Link to post
Share on other sites