Results 1 to 2 of 2

Thread: How to make a loot script?

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    How to make a loot script?

    Hello,

    I would like to do for me a loot script for Lizard City. Like, showing the HUD with loots, what I did used (ava/potions) and profit/waste... Sirmate librarys is perfect.
    Also, I would want it to show when lizards drop something rare. To not have to stop hunt and drag the channel up to see if there was some rare and of course I would it to take the loot too...

    But I don't know how to do it ;(

    Could someone help me?

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    just use Recent Loot Hud, here is edited Recent Loot by me,
    PHP Code:
    -- Recent Loot HUD Modification by RafiXWPT
    -- you can add more items here
    local shititems 
    = {""}
    local warnitems = {""
    local rareitems = {""

    local shitcolor "green"
    local warncolor "orange"
    local rarecolor "red"

    -- max lines to display at once 
    local maxindex 
    10 
    -- spacing between lines 
    local spacing 
    15 

    local index 

    local msgs 
    getmessages("Server Log"
    local qtd msgs.count-

    for i=0,qtd do 
    if 
    msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of 'then 

    local colorl 
    false 
    local colork 
    false 
    local colorm 
    false
    local l 

    local k 
    0
    local m 
    0

    for l=1table.getn(shititems) do 
    if 
    msgs[qtd-i].text:find(shititems[l]) then 
    colorl 
    true 
    break 
    end 
    end 

    for k=1table.getn(warnitems) do 
    if 
    msgs[qtd-i].text:find(warnitems[k]) then 
    colork 
    true 
    break 
    end 
    end 

    for m=1table.getn(rareitems) do 
    if 
    msgs[qtd-i].text:find(rareitems[m]) then 
    colorm 
    true 
    break 
    end 
    end

    if colorm then 
    setfontcolor
    (rarecolor
    elseif 
    colork then 
    setfontcolor
    (warncolor
    elseif 
    colorl then 
    setfontcolor
    (shitcolor
    else 
    setfontcolor('white'
    end 

    addtext
    (msgs[qtd-i].textworldwin.left+15,worldwin.bottom-(maxindex*spacing)+20+(index*spacing)) 
    index=index+
    if index == maxindex 
    then 
    break 
    end 
    end 
    end 
    just write in "" item names

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •