need som help with making a script command for rmx-os

Started by edwardthefma, September 16, 2009, 02:04:59 pm

Previous topic - Next topic

edwardthefma

 alias check_normal_commands_teleport check_normal_commands
    def check_normal_commands(message)
    if message == '/town'
     $game_temp.player_transferring = true
     $game_temp.player_new_map_id = 10
     $game_temp.player_new_x = 10
     $game_temp.player_new_y = 9
     $game_temp.player_new_direction = 0
     $scene = Scene_Map.new
     $game_map.autoplay
    return true
    end
  return check_normal_commands_teleport(message)
    end
    #------------

now i want to make this script so it checks for a item
if you dont have at
least 1 of the item so it dose nothing
and if you do have the item it removes 1
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
shellium.org :) free linux shells pm me and i will gladly
help you get 1

Aqua

Just add a conditional to check if the player has an item then subtract it? XD

$game_party... I don't remember the exact method >.>

Just look in $game_party