Jump to content

[pRO] Lotti Girl & Refine Master


Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Lotti Girl & Refine Master

 

 

/oh  pRO Lotti Girl

This script is pretty much the same pRO's Lotti Girl NPC.

You must have a Premium Ticket to be able to get the jackpot prize.

  • Script is very easy to config.
  • Adjustable chance.
  • A semi user friendly script.
  • Credits to Euphy
	//<Chance><ItemID><Item Amount>
	setarray .@P1[0],0,8012,1;
	setarray .@P2[0],1,8011,1;
	setarray .@P3[0],5,8006,1;
	setarray .@P4[0],20,8010,1;
	setarray .@P5[0],90,13517,5;
	setarray .@P6[0],80,12080,10;
	setarray .@P7[0],90,30110,5;
	setarray .@P8[0],80,12075,10;
	setarray .@Default[0],30095,5;

/oh pRO Refine Master

This script is pretty much the same pRO's Refine Master NPC.

Player should have Refine Deed Ticket as a requirement for the upgrade.

fHf3uBR.jpg

	set @c,select("+5 Weapon Deed",
	"+6 Weapon Deed",
	"+7 Weapon Deed",
	"+8 Weapon Deed",
	"+9 Weapon Deed",
	"+10 Weapon Deed",
	"+11 Weapon Deed",
	"+12 Weapon Deed",
	"+5 Armor Deed",
	"+6 Armor Deed",
	"+7 Armor Deed",
	"+8 Armor Deed",
	"+9 Armor Deed",
	"+10 Armor Deed",
	"+11 Armor Deed",
	"+12 Armor Deed");
	set @deed_item_id,8000+@c;

item_db2.txt:

8001,+5_Weapon_Refine_Deed,+5 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

idnum2itemdisplaynametable.txt:

8001#+5_Weapon_Refine_Deed#

idnum2itemresnametable.txt:

8001#ÄíÆù#

idnum2itemdesctable.txt:

8001#
A ticket that upgrade to +5 your weapon safely.
^ffffff_^000000
Weight :^777777 0^000000
#

Lotti Girl.txt

Refine Master.txt

Data Refine Deed.rar

  • Upvote 5
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   13
  • Joined:  11/21/11
  • Last Seen:  

Oh great!!
thx

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

I already added the official script and database entries for the Refine Ticket NPC in r17338. You don't really need the custom items, at least.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Oh great!!

thx

Welcome :P

 

I already added the official script and database entries for the Refine Ticket NPC in r17338. You don't really need the custom items, at least.

Yea I just noticed that after reading your script. xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

nice! /no1  suggest: I think it's better to add checking of weight because if the player is overweight the item will drop. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

nice! /no1  suggest: I think it's better to add checking of weight because if the player is overweight the item will drop. :)

 

Add:

if(Weight >= MaxWeight/2) goto Low;
Low:
	mes "You are Overweight!";
	close;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  197
  • Reputation:   13
  • Joined:  05/14/12
  • Last Seen:  

It is better to update also the script sir ahihihi for changes

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

It is better to update also the script sir ahihihi for changes

Update what?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

nice! /no1  suggest: I think it's better to add checking of weight because if the player is overweight the item will drop. :)

 

Add:

if(Weight >= MaxWeight/2) goto Low;
Low:
	mes "You are Overweight!";
	close;

 

 

why when i put this script it will keep telling  You are Overweight!

if(Weight >= MaxWeight/2) goto Low;


and


Low:
    mes "You are Overweight!";
    close;

but when this script only everything works fine the npc will closed automatic  but i want to add message when the player is overweight the npc will tell.

 

if(Weight >= MaxWeight/2)
Edited by Spectator
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

 

nice! /no1  suggest: I think it's better to add checking of weight because if the player is overweight the item will drop. :)

 

Add:

if(Weight >= MaxWeight/2) goto Low;
Low:
	mes "You are Overweight!";
	close;

 

 

why when i put this script it will keep telling  You are Overweight!

if(Weight >= MaxWeight/2) goto Low;


and


Low:
    mes "You are Overweight!";
    close;

but when this script only everything works fine the npc will closed automatic  but i want to add message when the player is overweight the npc will tell.

 

if(Weight >= MaxWeight/2)

 

Where did you put it? Can you post your script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

 

 

nice! /no1  suggest: I think it's better to add checking of weight because if the player is overweight the item will drop. :)

 

Add:

if(Weight >= MaxWeight/2) goto Low;
Low:
	mes "You are Overweight!";
	close;

 

 

why when i put this script it will keep telling  You are Overweight!

if(Weight >= MaxWeight/2) goto Low;


and


Low:
    mes "You are Overweight!";
    close;

but when this script only everything works fine the npc will closed automatic  but i want to add message when the player is overweight the npc will tell.

 

if(Weight >= MaxWeight/2)

 

Where did you put it? Can you post your script?


prontera,141,226,6	script	Lotti Girl	714,{
mes "[Lotti Girl]";	
mes "Hello Sir! Are you out";	
mes "shopping in the city?!";

next;	
mes "[Lotti Girl]";	
mes "I'm Lotti! I'll exchange cool";	
mes "random prizes for every";
mes "^ff00001 Premium Ticket^000000.";	

next;	

mes "[Lotti Girl]";	
mes "Our Grand prize is:";	
mes "^ff0000Combat Knife^000000";	
mes "Special prizes are:";	
mes "^ff0000+7 Armor Refine Deed^000000";	
mes "^ff0000+10 Weapon Refine Deed^000000";
mes "and ^ff0000+6 Armor Refine Deed^000000";	

next;	

mes "[Lotti Girl]";	
mes "You can still get random item";	
mes "if you failed to get the grand";
mes "prize and special prizes.";	
if (countitem(7608) < 1) close;	

next;

if(Weight >= MaxWeight/2) goto Low;

Low:
	mes "You are Overweight!";
	close;


next;


if(select("Deal me in!:No way...")==2)
close;	

mes "[Lotti Girl]";	
mes "Here we go...";	
delitem 7608,1;	
set .@Total,2;//<%>,<ItemID>,<Amount>
setarray .@P1[0],10,6233,1;
setarray .@P2[0],20,1228,1;	
setarray .@P3[0],90,2423,1;	
	
setarray .@Default[0], 14232,5;	
set .@i, rand(1,.@Total);	
if (rand(1,100) > getd(".@P"+.@i+"[0]"))	{		
for(set .@j,0; .@j<getarraysize(.@Default); 
set .@j,.@j+2)		{			
getitem .@Default[.@j], .@Default[.@j+1];			
if(!.@k[0])			
setarray .@k[0], .@Default[.@j], .@Default[.@j+1];		}}	
else{
		for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)	{			
getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");		
if (!.@k[0])			{			
set .@gz,.@i;			
setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");			
break;		}		}	}	
if(1<=.@gz&&.@gz<=4)		
announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0;	specialeffect2 248;	

close;}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

 

 

 

nice! /no1  suggest: I think it's better to add checking of weight because if the player is overweight the item will drop. :)

 

Add:

if(Weight >= MaxWeight/2) goto Low;
Low:
	mes "You are Overweight!";
	close;

 

 

why when i put this script it will keep telling  You are Overweight!

if(Weight >= MaxWeight/2) goto Low;


and


Low:
    mes "You are Overweight!";
    close;

but when this script only everything works fine the npc will closed automatic  but i want to add message when the player is overweight the npc will tell.

 

if(Weight >= MaxWeight/2)

 

Where did you put it? Can you post your script?


prontera,141,226,6	script	Lotti Girl	714,{
mes "[Lotti Girl]";	
mes "Hello Sir! Are you out";	
mes "shopping in the city?!";

next;	
mes "[Lotti Girl]";	
mes "I'm Lotti! I'll exchange cool";	
mes "random prizes for every";
mes "^ff00001 Premium Ticket^000000.";	

next;	

mes "[Lotti Girl]";	
mes "Our Grand prize is:";	
mes "^ff0000Combat Knife^000000";	
mes "Special prizes are:";	
mes "^ff0000+7 Armor Refine Deed^000000";	
mes "^ff0000+10 Weapon Refine Deed^000000";
mes "and ^ff0000+6 Armor Refine Deed^000000";	

next;	

mes "[Lotti Girl]";	
mes "You can still get random item";	
mes "if you failed to get the grand";
mes "prize and special prizes.";	
if (countitem(7608) < 1) close;	

next;

if(Weight >= MaxWeight/2) goto Low;

Low:
	mes "You are Overweight!";
	close;


next;


if(select("Deal me in!:No way...")==2)
close;	

mes "[Lotti Girl]";	
mes "Here we go...";	
delitem 7608,1;	
set .@Total,2;//<%>,<ItemID>,<Amount>
setarray .@P1[0],10,6233,1;
setarray .@P2[0],20,1228,1;	
setarray .@P3[0],90,2423,1;	
	
setarray .@Default[0], 14232,5;	
set .@i, rand(1,.@Total);	
if (rand(1,100) > getd(".@P"+.@i+"[0]"))	{		
for(set .@j,0; .@j<getarraysize(.@Default); 
set .@j,.@j+2)		{			
getitem .@Default[.@j], .@Default[.@j+1];			
if(!.@k[0])			
setarray .@k[0], .@Default[.@j], .@Default[.@j+1];		}}	
else{
		for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)	{			
getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");		
if (!.@k[0])			{			
set .@gz,.@i;			
setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");			
break;		}		}	}	
if(1<=.@gz&&.@gz<=4)		
announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0;	specialeffect2 248;	

close;}
// http://rathena.org/board/topic/83017-pro-lotti-girl-refine-master/
prontera,141,226,6	script	Lotti Girl	714,{
	if(Weight >= MaxWeight/2) goto Low;
	mes "[Lotti Girl]";
	mes "Hello Sir! Are you out";
	mes "shopping in the city?!";
	next;
	mes "[Lotti Girl]";
	mes "I'm Lotti! I'll exchange cool";
	mes "random prizes for every";
	mes "^ff00001 Premium Ticket^000000.";
	next;
	mes "[Lotti Girl]";
	mes "Our Grand prize is:";
	mes "^ff0000+8 Armor Refine Deed^000000";
	mes "Special prizes are:";
	mes "^ff0000+7 Armor Refine Deed^000000";
	mes "^ff0000+10 Weapon Refine Deed^000000";
	mes "and ^ff0000+6 Armor Refine Deed^000000";
	next;
	mes "[Lotti Girl]";
	mes "You can still get random item";
	mes "if you failed to get the grand";
	mes "prize and special prizes.";
	if (countitem(7608) < 1)
		close;
	next;
	if(select("Deal me in!:No way...")==2)
		close;
	mes "[Lotti Girl]";
	mes "Here we go...";
	delitem 7608,1;
	set .@Total,8;
	//<%>,<ItemID>,<Amount>
	setarray .@P1[0],0,8012,1;
	setarray .@P2[0],1,8011,1;
	setarray .@P3[0],5,8006,1;
	setarray .@P4[0],20,8010,1;
	setarray .@P5[0],90,13517,5;
	setarray .@P6[0],80,12080,10;
	setarray .@P7[0],90,30110,5;
	setarray .@P8[0],80,12075,10;
	setarray .@Default[0],30095,5;
	set .@i, rand(1,.@Total);
	if (rand(1,100) > getd(".@P"+.@i+"[0]"))
	{
		for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2)
		{
			getitem .@Default[.@j], .@Default[.@j+1];
			if(!.@k[0])
				setarray .@k[0], .@Default[.@j], .@Default[.@j+1];
		}
	}
	else{
		for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)
		{
			getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
			if (!.@k[0])
			{
				set .@gz,.@i;
				setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
				break;
			}
		}
	}
	if(1<=.@gz&&.@gz<=4)
		announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0;
	specialeffect2 248;
	close;
	
	Low:
	mes "You are Overweight!";
	close;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

thanks it works /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

thanks it works /no1

You're welcome! :P

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   3
  • Joined:  06/06/13
  • Last Seen:  

Thanks I'll use it on my server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Thanks I'll use it on my server

You're welcome! :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  11
  • Reputation:   0
  • Joined:  07/07/12
  • Last Seen:  

Lotti Girl & Refine Master

 

 

/oh  pRO Lotti Girl

This script is pretty much the same pRO's Lotti Girl NPC.

You must have a Premium Ticket to be able to get the jackpot prize.

  • Script is very easy to config.
  • Adjustable chance.
  • A semi user friendly script.
  • Credits to Euphy
	//<Chance><ItemID><Item Amount>
	setarray .@P1[0],0,8012,1;
	setarray .@P2[0],1,8011,1;
	setarray .@P3[0],5,8006,1;
	setarray .@P4[0],20,8010,1;
	setarray .@P5[0],90,13517,5;
	setarray .@P6[0],80,12080,10;
	setarray .@P7[0],90,30110,5;
	setarray .@P8[0],80,12075,10;
	setarray .@Default[0],30095,5;

/oh pRO Refine Master

This script is pretty much the same pRO's Refine Master NPC.

Player should have Refine Deed Ticket as a requirement for the upgrade.

fHf3uBR.jpg

	set @c,select("+5 Weapon Deed",
	"+6 Weapon Deed",
	"+7 Weapon Deed",
	"+8 Weapon Deed",
	"+9 Weapon Deed",
	"+10 Weapon Deed",
	"+11 Weapon Deed",
	"+12 Weapon Deed",
	"+5 Armor Deed",
	"+6 Armor Deed",
	"+7 Armor Deed",
	"+8 Armor Deed",
	"+9 Armor Deed",
	"+10 Armor Deed",
	"+11 Armor Deed",
	"+12 Armor Deed");
	set @deed_item_id,8000+@c;

item_db2.txt:

8001,+5_Weapon_Refine_Deed,+5 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

idnum2itemdisplaynametable.txt:

8001#+5_Weapon_Refine_Deed#

idnum2itemresnametable.txt:

8001#ÄíÆù#

idnum2itemdesctable.txt:

8001#
A ticket that upgrade to +5 your weapon safely.
^ffffff_^000000
Weight :^777777 0^000000
#

 

 

I've been following the ways above and downloading data
"Data Refine Deed rar."
But why all the items I turn out to be like this.
and if at click error this program
 
please help me

 

this code for item_db2.txt

8001,+5_Weapon_Refine_Deed,+5 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8002,+6_Weapon_Refine_Deed,+6 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8003,+7_Weapon_Refine_Deed,+7 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8004,+8_Weapon_Refine_Deed,+8 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8005,+9_Weapon_Refine_Deed,+9 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8006,+10_Weapon_Refine_Deed,+10 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8007,+11_Weapon_Refine_Deed,+11 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8008,+12_Weapon_Refine_Deed,+12 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8009,+5_Weapon_Refine_Deed,+5 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8010,+6_Weapon_Refine_Deed,+6 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8011,+7_Weapon_Refine_Deed,+7 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8012,+8_Weapon_Refine_Deed,+8 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8013,+9_Weapon_Refine_Deed,+9 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8014,+10_Weapon_Refine_Deed,+10 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8015,+11_Weapon_Refine_Deed,+11 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

8016,+12_Weapon_Refine_Deed,+12 Weapon Refine Deed,3,,10,10,,,,,,,,,,,,,{},{},{}

 

data in grf

 

idnum2itemdesctable.txt

8001#ÄíÆù#

8002#ÄíÆù#

8003#ÄíÆù#

8004#ÄíÆù#

8005#ÄíÆù#

8006#ÄíÆù#

8007#ÄíÆù#

8008#ÄíÆù#

8009#ÄíÆù#

8010#ÄíÆù#

8011#ÄíÆù#

8012#ÄíÆù#

8013#ÄíÆù#

8014#ÄíÆù#

8015#ÄíÆù#

8016#ÄíÆù#

 

 

idnum2itemdisplaynametable.txt

8001#+5_Weapon_Refine_Deed#

8002#+6_Weapon_Refine_Deed#

8003#+7_Weapon_Refine_Deed#

8004#+8_Weapon_Refine_Deed#

8005#+9_Weapon_Refine_Deed#

8006#+10_Weapon_Refine_Deed#

8007#+11_Weapon_Refine_Deed#

8008#+12_Weapon_Refine_Deed#

8009#+5_Armor_Refine_Deed#

8010#+6_Armor_Refine_Deed#

8011#+7_Armor_Refine_Deed#

8012#+8_Armor_Refine_Deed#

8013#+9_Armor_Refine_Deed#

8014#+10_Armor_Refine_Deed#

8015#+11_Armor_Refine_Deed#

8016#+12_Armor_Refine_Deed#

 

idnum2itemresnametable.txt

8001#ÄíÆù#

8002#ÄíÆù#

8003#ÄíÆù#

8004#ÄíÆù#

8005#ÄíÆù#

8006#ÄíÆù#

8007#ÄíÆù#

8008#ÄíÆù#

8009#ÄíÆù#

8010#ÄíÆù#

8011#ÄíÆù#

8012#ÄíÆù#

8013#ÄíÆù#

8014#ÄíÆù#

8015#ÄíÆù#

8016#ÄíÆù#

 

any wrong??

post-6015-0-11769000-1371867281_thumb.jpg

post-6015-0-00628600-1371867289_thumb.jpg

post-6015-0-78917300-1371867299_thumb.jpg

Edited by kingdomro
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Are you using latest version of kRO? Also what's your SVN version?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  11
  • Reputation:   0
  • Joined:  07/07/12
  • Last Seen:  

Are you using latest version of kRO? Also what's your SVN version?

 

i use kro version "Full_kRO_Renewal_20130301"

why sir??

 

Svn Version r17324

Edited by kingdomro
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Are you using latest version of kRO? Also what's your SVN version?

 

i use kro version "Full_kRO_Renewal_20130301"

why sir??

 

Svn Version r17324

Euphy already release the refine master, so you should ignore my refine master script. Also we already have refine deed ticket in our DB.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  07/15/13
  • Last Seen:  

sir for your lotti girl .. how can i make it one click ?

 

EDIT: sir I have made modifications on your lotti girl script to make it just one click but when only 1 ticket is in my inventory it doesnt delete the item and keeps on giving item. what should I do ?

 

here's the script..

 

turbo_room,72,98,6	script	Lotti Girl	714,{


	if (countitem(30177) < 1)
{
		mes "You need at least 1 Lotti Ticket!";
		close;
		next;
}
	if (countitem(30177) > 1) {
	
	delitem 30177,1;

	set .@Total,8;


}
//<%>,<ItemID>,<Amount>

	setarray .@P1[0],0,30327,1;

	setarray .@P2[0],1,30352,1;

	setarray .@P3[0],5,30188,1;

	setarray .@P4[0],20,30161,1;

	setarray .@P5[0],90,30176,5;

	setarray .@P6[0],80,30173,10;

	setarray .@P7[0],90,30159,5;

	setarray .@P8[0],80,674,10;

	setarray .@Default[0],673,5;

	set .@i, rand(1,.@Total);

	if (rand(1,100) > getd(".@P"+.@i+"[0]"))

	{
		for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2)

		{
			getitem .@Default[.@j], .@Default[.@j+1];

			if(!.@k[0])

				setarray .@k[0], .@Default[.@j], .@Default[.@j+1];

		}

	}

	else{

		for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)

		{

			getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");

			if (!.@k[0])

			{

				set .@gz,.@i;

				setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");

				break;

			}

		}

	}

	if(1<=.@gz&&.@gz<=4)

		announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl!",0;

	specialeffect2 248;

	close;

}
Edited by nexus1528
Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   4
  • Joined:  05/23/12
  • Last Seen:  


How to make this upto +10 armor/weapon only. no +11/+12

Edited by xilence01
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  168
  • Reputation:   0
  • Joined:  11/20/13
  • Last Seen:  

how to put a clock on it.. so it will automatic hide and unhide npc and it will broadcast if the npc will be hide or finish and broadcast if the npc will be unhide or ready

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  95
  • Topics Per Day:  0.02
  • Content Count:  210
  • Reputation:   3
  • Joined:  12/20/11
  • Last Seen:  

how to announce 1 or more grand prize?

Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  07/26/17
  • Last Seen:  

On 6/2/2013 at 10:22 AM, Anakid said:

Lotti Girl & Refine Master

 

 

/oh  pRO Lotti Girl

This script is pretty much the same pRO's Lotti Girl NPC.

You must have a Premium Ticket to be able to get the jackpot prize.

  • Script is very easy to config.
  • Adjustable chance.
  • A semi user friendly script.
  • Credits to Euphy

	//<Chance><ItemID><Item Amount>
	setarray .@P1[0],0,8012,1;
	setarray .@P2[0],1,8011,1;
	setarray .@P3[0],5,8006,1;
	setarray .@P4[0],20,8010,1;
	setarray .@P5[0],90,13517,5;
	setarray .@P6[0],80,12080,10;
	setarray .@P7[0],90,30110,5;
	setarray .@P8[0],80,12075,10;
	setarray .@Default[0],30095,5;

Hi how to add 2 choicess example: 100k zenny per game and 3 TCG <- higher chance to win if they use TCG

 

Edited by daShiru
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
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.

×
×
  • Create New...