Jump to content
  • 0

Lotti Girl, but i want with an announcement


Question

Posted

I use this Lotti Girl script
but this script don't have announcement when get item with low chance (such as < 5%)
and i want to have the announcement so other player can read it
anyone can help me?

thank you in advance

 

lotti.txt

3 answers to this question

Recommended Posts

  • 0
Posted
for ( .@i = 0; .@i < .itemsize[.@r]; ++.@i ) {
	getitem .@itemid[.@i], .@itemamount[.@i];
	if (getd( ".p"+ .@r +"[0]" ) < 10)
		announce "<Lotti> "+strcharinfo(0)+" obtained "+.@itemamount[.@i]+"x "+getitemname(.@itemid[.@i]), bc_all;   // <----- THIS LINE
}

only announce 10% or below.

 

for ( .@i = 0; .@i < .itemsize[.@r]; ++.@i ) {
	getitem .@itemid[.@i], .@itemamount[.@i];
	announce "<Lotti> "+strcharinfo(0)+" obtained "+.@itemamount[.@i]+"x "+getitemname(.@itemid[.@i]), bc_all;   // <----- THIS LINE
}

announce all items

  • Upvote 1
  • 0
Posted
On 8/7/2021 at 12:57 AM, polong said:

I use this Lotti Girl script
but this script don't have announcement when get item with low chance (such as < 5%)
and i want to have the announcement so other player can read it
anyone can help me?

thank you in advance

 

lotti.txt 6.24 kB · 8 downloads

You can just put announce after or before the getitem part.

  • 0
Posted

yes, i know to put it near getitem part
but i don't know how to make it announce with the item name the player get because the items in the array

and if I want to make item with chance 10% and below get an announcement
how do i put the script?
thanks

thank you, it is work

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...