[XP] Town-scrolls for RMX-OS

Started by edwardthefma, September 16, 2009, 06:33:22 pm

Previous topic - Next topic

edwardthefma

September 16, 2009, 06:33:22 pm Last Edit: March 23, 2019, 11:33:30 am by Blizzard
Town-scrolls for RMX-OS
Authors: edwardthefma, Blizzard
Version: 1.0
Type: RMX-OS Plugin
Key Term: RMX-OS Plugin



Introduction

This script allows you type in the command town-scroll and you will be tellaported to the town you have it set for.

This script is to be distributed under the same terms and conditions like the script it was created for: RMX-OS.


Features


  • transfering comands
  • very easy to use



Screenshots

N/A for this sort of script.


Demo

N/A


Script
Just make a new script above main and paste this code into it.
Spoiler: ShowHide

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# town scroll for RMX-OS by edwardthefma & Blizzard
# Version: 1.0
# Type: RMX-OS Add-on
# Date: 9.16.2009
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#  This script is to be distributed under the same terms and conditions like
#  the script it was created for: RMX-OS.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information: ok you need to change the numbers to define
# where you want the town-scroll to go the command name can be any thing you want it to be

#   
#
#    if message =~ /\A\/command name \Z/
# if $game_party.item_number(item id) == 1
#     $game_temp.player_transferring = true
#    $game_temp.player_new_map_id = mapid
#     $game_temp.player_new_x = map x
#     $game_temp.player_new_y = map y
#     $game_temp.player_new_direction = 0
#     $scene = Scene_Map.new
#     $game_map.autoplay
#     $game_party.gain_item( item id ,-1)
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=


class RMXOS::Network
 
  #============================================================================
  # module RMXOS::Docs
  #----------------------------------------------------------------------------
  # Contains data for in-game information how to use RMX-OS. This should not
  # be edited but only extended in case of adding new functionality (i.e.
  # additional chat commands).
  #============================================================================
 
  module RMXOS::Docs
 
  PARAMETERS['town-scroll'] = 'none'
  DESCRIPTIONS['town-scroll'] = 'takes you to a town.'
 
end
#==============================================================================
# the chat command for towns-scroll
#==============================================================================
alias check_normal_commands_command_save check_normal_commands
  def check_normal_commands(message)
    if message =~ /\A\/town-scroll\Z/
      if $game_party.item_number(34) == 1
      $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
     $game_party.gain_item(34,-1)
        return true
    end
      return true
    end
    return check_normal_commands_command_save(message)
  end
 
end



Instructions

In the script


Compatibility

Requires RMX-OS to work.


Credits and Thanks


  • edwardthefma
  • Boris "Blizzard" Mikić
  • Aqua



Author's Notes
none

If you find any bugs, please report them here:
http://forum.chaos-project.com
8) 8) 8) 8) 8)
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

Blizzard

*fixes your post a bit*
*moves*
*levels up*

<3
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.