Results 1 to 2 of 2

Thread: Trying to make script

  1. #1
    Normal User
    Join Date
    Jan 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Trying to make script

    can someone help me make this for an ot i am trying my best but it wont work want it to use my glod stack to make a plat

    Code:
    if (itemcount(3031))
    then
        useitem(3031)
    wait(1000)
    end
    thanks

  2. #2
    Normal User
    Join Date
    Jan 2013
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    it's supposed to be something like

    Code:
     
    function onUse(cid, item, fromPosition, itemEx, toPosition)
    
    	if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then
    
    		doChangeTypeItem(item.uid, item.type - item.type)
    
    		doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1)

Posting Permissions

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