Post by GabeN on Oct 20, 2015 17:01:34 GMT
A simple hud to show how much are the items you picked up worth and how much are the ones you missed.
Display format: Picked up items/Dropped items Item Name - Picked up items value/Dropped items value
Item1 in script below is made for stackable items (Thanks @darthmaul)
Item2 in script below is made for non-stackable items
Edit this for each stackable item:
Edit this for each non-stackable item:
To add more stackable items simply copy-paste the script starting at
and ending at
And afterwards add a number at the end of every word containing $ before it equal to the number of the item (E.g. change $dropedpricecount to $dropedpricecount3)
also increase second number in setpos by 10 (E.g. change setpos 5 125 to setpos 5 135)
To add more non-stackable items simply copy-paste the script starting at
and ending at
And afterwards add a number at the end of every word containing $ before it equal to the number of the item (E.g. change $NAME2 to $NAME4) also increase second number in setpos by 10 (E.g. change setpos 5 125 to setpos 5 135)
Display format: Picked up items/Dropped items Item Name - Picked up items value/Dropped items value
Item1 in script below is made for stackable items (Thanks @darthmaul)
Item2 in script below is made for non-stackable items
auto 1 setpos 5 100 | setcolor 255 000 000 | displaytext 'Profit HUD v1.0 by GabeN'
set $dropedpricecount 0
set $dropedwholenum 0
set $dropedmaxwholenum 20
set $dropedtotal 0
set $pickedpricecount 0
set $pickedwholenum 0
set $pickedtotal 0
set $pickedmaxwholenum 20
set $NAME1 "Exp Token"
set $ID1 '11455'
set $PRICE1 5
set $DROPED1 0
set $PICKED1 0
set $COIN CC
auto 1 | dontlist | foreach 'newmessages' $a if [$a.content ? '$NAME1'] {set $dropedpricecount '[$dropedpricecount+1]' | if [$dropedpricecount >= $dropedmaxwholenum] {set $dropedwholenum '[$dropedwholenum+1]' | set $dropedpricecount '[$dropedpricecount-$dropedmaxwholenum]'} | if [$dropedpricecount > 1 and $dropedpricecount < $dropedmaxwholenum] {set $dropedtotal '[$dropedwholenum].[$dropedpricecount*$PRICE1]'} | if [$dropedpricecount <= 1] {set $dropedtotal '[$dropedwholenum].0[$dropedpricecount*$PRICE1]'}
auto 1 dontlist | foreach 'newmessages' $b if [$b.content ? '$NAME1'] {set $DROPED1 [$DROPED1+1]}
auto 1 | dontlist | foreach 'newmessages' $c if [$c.content ? 'PICK+1'] {set $pickedpricecount '[$pickedpricecount+1]' | if [$pickedpricecount >= $pickedmaxwholenum] {set $pickedwholenum '[$pickedwholenum+1]' | set $pickedpricecount '[$pickedpricecount-$pickedmaxwholenum]'} | if [$pickedpricecount > 1 and $pickedpricecount < $pickedmaxwholenum] {set $pickedtotal '[$pickedwholenum].[$pickedpricecount*$PRICE1]'} | if [$pickedpricecount <= 1] {set $pickedtotal '[$pickedwholenum].0[$pickedpricecount*$PRICE1]'}
auto 100 dontlist | set $PrTotal $PTotal | countitemsvisible $ID1 | set $PTotal $count | if [$PTotal > $PrTotal] { pm $self.name 'PICK+1' }
auto 1 setpos 5 115 | setcolor 244 102 255 | displaytext '[$PTotal]/[$DROPED1] $NAME1 - [$pickedtotal]/[$dropedtotal] $COIN'
set $NAME2 "Golden Armor"
set $ID2 '3360'
set $PRICE2 20
set $DROPED2 0
set $DROPEDP2 0
set $PICKED2 0
set $DROPEDC2 0
set $PICKEDC1 0
set $DROPEDCC1 0
set $COIN2 CC
auto 100 dontlist | foreach 'newmessages' $a if [$a.content ? '$NAME2'] { set $DROPED2 [$DROPED2+1] | set $DROPEDC2 [$DROPEDC2+$PRICE2]
auto 5000 dontlist | countitemsvisible $ID2 | set $PICKED2 $count | set $PICKEDC2 [$PICKED2*$PRICE2]
auto 1 setpos 5 125 | setcolor 244 102 255 | displaytext '[$PICKED2]/[$DROPED2] $NAME2 - [$PICKEDC2]/[$DROPEDC2] $COIN2
set $dropedpricecount 0
set $dropedwholenum 0
set $dropedmaxwholenum 20
set $dropedtotal 0
set $pickedpricecount 0
set $pickedwholenum 0
set $pickedtotal 0
set $pickedmaxwholenum 20
set $NAME1 "Exp Token"
set $ID1 '11455'
set $PRICE1 5
set $DROPED1 0
set $PICKED1 0
set $COIN CC
auto 1 | dontlist | foreach 'newmessages' $a if [$a.content ? '$NAME1'] {set $dropedpricecount '[$dropedpricecount+1]' | if [$dropedpricecount >= $dropedmaxwholenum] {set $dropedwholenum '[$dropedwholenum+1]' | set $dropedpricecount '[$dropedpricecount-$dropedmaxwholenum]'} | if [$dropedpricecount > 1 and $dropedpricecount < $dropedmaxwholenum] {set $dropedtotal '[$dropedwholenum].[$dropedpricecount*$PRICE1]'} | if [$dropedpricecount <= 1] {set $dropedtotal '[$dropedwholenum].0[$dropedpricecount*$PRICE1]'}
auto 1 dontlist | foreach 'newmessages' $b if [$b.content ? '$NAME1'] {set $DROPED1 [$DROPED1+1]}
auto 1 | dontlist | foreach 'newmessages' $c if [$c.content ? 'PICK+1'] {set $pickedpricecount '[$pickedpricecount+1]' | if [$pickedpricecount >= $pickedmaxwholenum] {set $pickedwholenum '[$pickedwholenum+1]' | set $pickedpricecount '[$pickedpricecount-$pickedmaxwholenum]'} | if [$pickedpricecount > 1 and $pickedpricecount < $pickedmaxwholenum] {set $pickedtotal '[$pickedwholenum].[$pickedpricecount*$PRICE1]'} | if [$pickedpricecount <= 1] {set $pickedtotal '[$pickedwholenum].0[$pickedpricecount*$PRICE1]'}
auto 100 dontlist | set $PrTotal $PTotal | countitemsvisible $ID1 | set $PTotal $count | if [$PTotal > $PrTotal] { pm $self.name 'PICK+1' }
auto 1 setpos 5 115 | setcolor 244 102 255 | displaytext '[$PTotal]/[$DROPED1] $NAME1 - [$pickedtotal]/[$dropedtotal] $COIN'
set $NAME2 "Golden Armor"
set $ID2 '3360'
set $PRICE2 20
set $DROPED2 0
set $DROPEDP2 0
set $PICKED2 0
set $DROPEDC2 0
set $PICKEDC1 0
set $DROPEDCC1 0
set $COIN2 CC
auto 100 dontlist | foreach 'newmessages' $a if [$a.content ? '$NAME2'] { set $DROPED2 [$DROPED2+1] | set $DROPEDC2 [$DROPEDC2+$PRICE2]
auto 5000 dontlist | countitemsvisible $ID2 | set $PICKED2 $count | set $PICKEDC2 [$PICKED2*$PRICE2]
auto 1 setpos 5 125 | setcolor 244 102 255 | displaytext '[$PICKED2]/[$DROPED2] $NAME2 - [$PICKEDC2]/[$DROPEDC2] $COIN2
Edit this for each stackable item:
set $dropedmaxwholenum // Change this to how many items are equal to 1 (E.g. If 20 Exp Tokens = 1 CC , change this to 20)
set $pickedmaxwholenum // Same as above
set $price 5 // Change this to how much 1 of the item is worth (E.g. If 1 Exp Token = 0.06 CC , change this to 6)
set $NAME1 // Speaks for itself, change it to the name of the item.
set $ID1 // ID of the item
set $COIN // Abriviated (doesn't have to be) version of coin to display
set $pickedmaxwholenum // Same as above
set $price 5 // Change this to how much 1 of the item is worth (E.g. If 1 Exp Token = 0.06 CC , change this to 6)
set $NAME1 // Speaks for itself, change it to the name of the item.
set $ID1 // ID of the item
set $COIN // Abriviated (doesn't have to be) version of coin to display
Edit this for each non-stackable item:
set $NAME2 // Speaks for itself, change it to the name of the item.
set $ID2 // ID of the item
set $PRICE2 // Price of the item
set $COIN2 CC // Abriviated (doesn't have to be) version of coin to display
set $ID2 // ID of the item
set $PRICE2 // Price of the item
set $COIN2 CC // Abriviated (doesn't have to be) version of coin to display
To add more stackable items simply copy-paste the script starting at
set $dropedpricecount 0
and ending at
auto 1 setpos 5 115 | setcolor 244 102 255 | displaytext '[$PTotal]/[$DROPED1] $NAME1 - [$pickedtotal]/[$dropedtotal] $COIN'
also increase second number in setpos by 10 (E.g. change setpos 5 125 to setpos 5 135)
To add more non-stackable items simply copy-paste the script starting at
set $NAME2 "Golden Armor"
and ending at
auto 1 setpos 5 125 | setcolor 244 102 255 | displaytext '[$PICKED2]/[$DROPED2] $NAME2 - [$PICKEDC2]/[$DROPEDC2] $COIN2