Welcome Guest



Site menu
News topics
Map making [5]
The basics for map making.
Our poll
Please rate my site
Total of answers: 534


Main » 2009 » February » 18

Item stacking

The following trigger "combines" the charges of 2 items together to save inventory slots.
(very useful):

function Combine_Items_Conditions takes nothing returns boolean
    return GetItemCharges(GetManipulatedItem()) > 0
endfunction

function Combine_Items_Actions takes nothing returns nothing
    local item NEWITEM = GetManipulatedItem()
    local unit OURUNIT = GetManipulatingUnit()
    local integer MAXIMUM = 15  //The max no. of charges allowed
    local integer ITEMCOUNT = 0
    local integer ITEMLOOP = 0
    local integer CHARGES = 0
   
    loop
      &nbs ... Read more »
Category: Map making | Views: 1460 | Date: 2009-02-18 | Rating: 5.0/2 | Comments (1)




Login form
News calendar
«  February 2009  »
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
Search
Site friends
Statistics

Total online: 1
Guests: 1
Users: 0