Signup Now
Results 1 to 2 of 2
  1. #1
    Free User Ntx's Avatar
    Join Date
    Dec 2013
    Location
    Goiania
    Posts
    45
    Reputation
    10
    Rep Power
    0

    Change Gold [FOR OT]

    I play lunarforce and need it, someone can help me?


    If have more than 100 gold coins, use the stack of 100 gold to change to platinum.

    @EDIT: Already solved, here is the code:

    Quote Originally Posted by mistgun View Post


    auto(200, 300)

    for i=0,15 do
    local cont = getcontainer(i)
    for j=1,cont.itemcount do
    if cont.item[j].count == 100 and (cont.item[j].id == 3035 or cont.item[j].id == 3031) then
    useitem(cont.item[j].id, i, j)
    end

    end
    end


    Credits to @mistgun
    Last edited by Ntx; 12-14-2013 at 07:07 PM. Reason: Solved

  2. #2
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,440
    Reputation
    283
    Rep Power
    27

 

 

Posting Permissions

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