Jump to content
  • 0

Lotti Girl, but i want with an announcement


polong

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  03/14/19
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  03/14/19
  • Last Seen:  

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

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

×
×
  • Create New...