Deadly Brothers

R> NPC Claim In Code Item At All Player

Recommended Posts

2 hours ago, Deadly Brothers said:

hindi po ito donation npc naman po ito para freebies npc na pwede nyo code yung mga item sa kukuha na mga player lahat

pede mo naman ire-config yan 
pero sige eto ginawan kita

 

prontera,156,191,5	script	Freebies	435,{

mes "Please enter the code to claim freebies.";
next;
input [email protected]_code$;

if( [email protected]_code$ == "1231" ){

if(#freebies == 1) goto F_1;

if (BaseLevel < 1) goto L_1;
mes "[Freebies NPC]"; 
mes "Hi! "+strcharinfo(0)+"";
mes "You will recieve 1 Ragnarok Online Freebies";
mes "Thanks For Joining Here , Wish Too See You in the Future.";
next;


getitem 26117,5;
getitem 26118,5;
getitem 26121,5;
getitem 26122,5;
getitem 4142,1;
getitem 26307,20;
getitem 13973,10;
getitem 7588,10;
getitem 20307,1;

emotion ET_THX;
set #freebies,1;
close;

OnInit:
waitingroom "Freebies NPC",0;
end;

L_1:
mes "[Freebies NPC]";
mes "You must be level 1 to Enjoy Our Freebies";
emotion ET_THX;
close;

F_1:
mes "[Freebies NPC]";
mes "Enjoy Playing RO-RO !";
emotion ET_STARE;
close;
}else{
	mes "Freebies code not found";
	close;
}
}

 

Share this post


Link to post
Share on other sites

kung gusto mo naman naka database pag release mo ng freebies code eto gawin mo

database

CREATE TABLE IF NOT EXISTS `reward_codes` (

  `code` VARCHAR(10) NOT NULL DEFAULT '',

  `nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0',

  `amount` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',

  `redeem_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',

  `char_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',

  PRIMARY KEY (`code`)

) ENGINE=MYISAM;

eto naman ung code
 

prontera,156,191,5	script	Freebies	435,{


mes "Please enter the code to claim freebies.";
next;
input [email protected]_code$;

if(query_sql("SELECT nameid,amount,char_id FROM `reward_codes` WHERE `code`='"+escape_sql([email protected]_code$)+"'", [email protected],[email protected],[email protected]_id) == 0) {

if(#freebies == 1) goto F_1;

if (BaseLevel < 1) goto L_1;
mes "[Freebies NPC]"; 
mes "Hi! "+strcharinfo(0)+"";
mes "You will recieve 1 Ragnarok Online Freebies";
mes "Thanks For Joining Here , Wish Too See You in the Future.";
next;


getitem 26117,5;
getitem 26118,5;
getitem 26121,5;
getitem 26122,5;
getitem 4142,1;
getitem 26307,20;
getitem 13973,10;
getitem 7588,10;
getitem 20307,1;

emotion ET_THX;
set #freebies,1;
query_sql "UPDATE `reward_codes` SET `redeem_time`=NOW(), `char_id`="+getcharid(0)+" WHERE `code`='"+escape_sql([email protected]_code$)+"'";
close;

OnInit:
waitingroom "Freebies NPC",0;
end;

L_1:
mes "[Freebies NPC]";
mes "You must be level 1 to Enjoy Our Freebies";
emotion ET_THX;
close;

F_1:
mes "[Freebies NPC]";
mes "Enjoy Playing RO-RO !";
emotion ET_STARE;
close;
}else{
	mes "Freebies code not found";
	close;
}
}

 

Share this post


Link to post
Share on other sites
On 1/12/2020 at 12:49 AM, BeWan said:

kung gusto mo naman naka database pag release mo ng freebies code eto gawin mo

database

CREATE TABLE IF NOT EXISTS `reward_codes` (

  `code` VARCHAR(10) NOT NULL DEFAULT '',

  `nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0',

  `amount` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',

  `redeem_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',

  `char_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',

  PRIMARY KEY (`code`)

) ENGINE=MYISAM;

eto naman ung code
 

prontera,156,191,5	script	Freebies	435,{


mes "Please enter the code to claim freebies.";
next;
input [email protected]_code$;

if(query_sql("SELECT nameid,amount,char_id FROM `reward_codes` WHERE `code`='"+escape_sql([email protected]_code$)+"'", [email protected],[email protected],[email protected]_id) == 0) {

if(#freebies == 1) goto F_1;

if (BaseLevel < 1) goto L_1;
mes "[Freebies NPC]"; 
mes "Hi! "+strcharinfo(0)+"";
mes "You will recieve 1 Ragnarok Online Freebies";
mes "Thanks For Joining Here , Wish Too See You in the Future.";
next;


getitem 26117,5;
getitem 26118,5;
getitem 26121,5;
getitem 26122,5;
getitem 4142,1;
getitem 26307,20;
getitem 13973,10;
getitem 7588,10;
getitem 20307,1;

emotion ET_THX;
set #freebies,1;
query_sql "UPDATE `reward_codes` SET `redeem_time`=NOW(), `char_id`="+getcharid(0)+" WHERE `code`='"+escape_sql([email protected]_code$)+"'";
close;

OnInit:
waitingroom "Freebies NPC",0;
end;

L_1:
mes "[Freebies NPC]";
mes "You must be level 1 to Enjoy Our Freebies";
emotion ET_THX;
close;

F_1:
mes "[Freebies NPC]";
mes "Enjoy Playing RO-RO !";
emotion ET_STARE;
close;
}else{
	mes "Freebies code not found";
	close;
}
}

 

pan sa kalahatan na ba ito lahat ng naka online in game mabibigyan? o 1 by 1 ang bigay?

Share this post


Link to post
Share on other sites
44 minutes ago, Deadly Brothers said:

pan sa kalahatan na ba ito lahat ng naka online in game mabibigyan? o 1 by 1 ang bigay?

ung script one time lang same code. ung my database pedeng hindi pedeng oo

Share this post


Link to post
Share on other sites
3 hours ago, BeWan said:

ung script one time lang same code. ung my database pedeng hindi pedeng oo

ganun kailangan ko kasi pan kalahatan kapag naka online tapos code mo yung item mga ibibigay mo para 3 in 1 na kape incode mo mga item 3pcs makukuha na nila ng player

Share this post


Link to post
Share on other sites
26 minutes ago, Deadly Brothers said:

ganun kailangan ko kasi pan kalahatan kapag naka online tapos code mo yung item mga ibibigay mo para 3 in 1 na kape incode mo mga item 3pcs makukuha na nila ng player

anong code ba tinutukoy mo lol. pag ka click ng npc mkka kuha na ng freebies item? lol

Share this post


Link to post
Share on other sites
17 hours ago, BeWan said:

anong code ba tinutukoy mo lol. pag ka click ng npc mkka kuha na ng freebies item? lol

ang tinutukoy ko code yung code item sampol code mo ito number 507 sa npc reward giver

reward giver.jpg

Edited by Deadly Brothers

Share this post


Link to post
Share on other sites
1 hour ago, Deadly Brothers said:

ang tinutukoy ko code yung code item sampol code mo ito number 507 sa npc reward giver

reward giver.jpg

You mean 2 say code for the day?? example my gnwa kaung event then mag bbgay ka ng code dun sa event na yun,, tpos yan ang i cclaim nla sa npc n yan? 1 acc. per code tapos mag eexpire ang code depende sa snabing oras?,, paki detail po,, mdami gus2 2mulong hnd lng nla makuha nag point mo

Share this post


Link to post
Share on other sites
13 minutes ago, Zack- said:

You mean 2 say code for the day?? example my gnwa kaung event then mag bbgay ka ng code dun sa event na yun,, tpos yan ang i cclaim nla sa npc n yan? 1 acc. per code tapos mag eexpire ang code depende sa snabing oras?,, paki detail po,, mdami gus2 2mulong hnd lng nla makuha nag point mo

kung baga wala sila expired date kung sino yung naka on game kasi dalawa yan yung isa sa naka online reward tapos yung isa para account reward naman sila makaka claim sa npc na yung, yung naman code na sinasabi ko yung sa npc na yan pwede ka mag input ng id item number sa rereward mo sa mga player na mga naka online in game or dun sa account nila, tapos 1 account reward per claim sunod 1 online reward per claim

 

Explain:

Input Item Id On Account Reward

Field Manual 5x

Apple 2x

Blue potion x3

Input Item Id On Online Reward

Poporing Hat

Poring Card

Ganito Siya NPC...

Edited by Deadly Brothers

Share this post


Link to post
Share on other sites
1 hour ago, Zack- said:

You mean 2 say code for the day?? example my gnwa kaung event then mag bbgay ka ng code dun sa event na yun,, tpos yan ang i cclaim nla sa npc n yan? 1 acc. per code tapos mag eexpire ang code depende sa snabing oras?,, paki detail po,, mdami gus2 2mulong hnd lng nla makuha nag point mo

+1 dito ang gulo nya kausap. haha

Share this post


Link to post
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
Reply to this topic...

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

Loading...