Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - edwardthefma

1
i need a script that can prevent 1 user from logging on to 2 servers at the same
i have a idea but i dont  know how to wright it is whare

you have that script reads a .php file that is displaying users logged into a server
and it takes the names and dose not allow them to log into the server while already
being logged into 1 i want to prevent messing up the sql
2
i need a command maid for this ruby irc bot
it needs to run
$network.send('RES')
$scene = Scene_Servers.new

inside of a command  so if i like privet messge the bot and say !restart
it sends the function and thus restarts my game server

Spoiler: ShowHide
#!/usr/local/bin/ruby

require "socket"

# Don't allow use of "tainted" data by potentially dangerous operations
$SAFE=1

# The irc class, which talks to the server and holds the main event loop
class IRC
    def initialize(server, port, nick, channel)
        @server = server
        @port = port
        @nick = nick
        @channel = channel
    end
    def send(s)
        # Send a message to the irc server and print it to the screen
        puts "--> #{s}"
        @irc.send "#{s}\n", 0
    end
    def connect()
        # Connect to the IRC server
        @irc = TCPSocket.open(@server, @port)
        send "USER blah blah blah :blah blah"
        send "NICK #{@nick}"
        send "JOIN #{@channel}"
    end
    def evaluate(s)
        # Make sure we have a valid expression (for security reasons), and
        # evaluate it if we do, otherwise return an error message
        if s =~ /^[-+*\/\d\s\eE.()]*$/ then
            begin
                s.untaint
                return eval(s).to_s
            rescue Exception => detail
                puts detail.message()
            end
        end
        return "Error"
    end
    def handle_server_input(s)
        # This isn't at all efficient, but it shows what we can do with Ruby
        # (Dave Thomas calls this construct "a multiway if on steroids")
        case s.strip
            when /^PING :(.+)$/i
                puts "[ Server ping ]"
                send "PONG :#{$1}"
            when /^:(.+?)!(.+?)@(.+?)\sPRIVMSG\s.+\s:[\001]PING (.+)[\001]$/i
                puts "[ CTCP PING from #{$1}!#{$2}@#{$3} ]"
                send "NOTICE #{$1} :\001PING #{$4}\001"
            when /^:(.+?)!(.+?)@(.+?)\sPRIVMSG\s.+\s:[\001]VERSION[\001]$/i
                puts "[ CTCP VERSION from #{$1}!#{$2}@#{$3} ]"
                send "NOTICE #{$1} :\001VERSION Ruby-irc v0.042\001"
            when /^:(.+?)!(.+?)@(.+?)\sPRIVMSG\s(.+)\s:EVAL (.+)$/i
                puts "[ EVAL #{$5} from #{$1}!#{$2}@#{$3} ]"
                send "PRIVMSG #{(($4==@nick)?$1:$4)} :#{evaluate($5)}"
            else
                puts s
        end
    end
    def main_loop()
        # Just keep on truckin' until we disconnect
        while true
            ready = select([@irc, $stdin], nil, nil, nil)
            next if !ready
            for s in ready[0]
                if s == $stdin then
                    return if $stdin.eof
                    s = $stdin.gets
                    send s
                elsif s == @irc then
                    return if @irc.eof
                    s = @irc.gets
                    handle_server_input(s)
                end
            end
        end
    end
end

# The main program
# If we get an exception, then print it out and keep going (we do NOT want
# to disconnect unexpectedly!)
irc = IRC.new('efnet.skynet.be', 6667, 'Alt-255', '#cout')
irc.connect()
begin
    irc.main_loop()
rescue Interrupt
rescue Exception => detail
    puts detail.message()
    print detail.backtrace.join("\n")
    retry
end
3
Script Requests / simple server status script
May 19, 2010, 11:03:12 pm
i need a simple server status script that will wright online to a log and wen  the server is started and offline wen it is closed
out
4
i  checked it out and in some ways it is better than windows it loaded alot faster than windows
5
we need a irc bot for #chaosproject to mod the Chan and to keep a user in the Chan
wen no 1 is in the Chan Chanserv for some odd reason gives +o to the last person in the Chan
i would be happy to host a bot also it can have cool commands for Remexos

6
RMX-OS top ten best
Authors: edwardthefma drummer
Type: php script



Introduction
top ten best players buy level



Features


  • a top ten listing




Screenshots
N/A
Demo
http://ssh.shellium.org/~edwardthefma/Eris%20online%20/topten.php



Script
Spoiler: ShowHide
  <html>

     <body>

     <?php

     class user {
 
             public $name;
 
             public $lv;
 
             public $exp;
 
     
 
             function __construct($name, $lv, $exp) {
 
                     $this->name = trim($name, '"');
 
                     $this->lv = $lv;
 
                     $this->exp = $exp;
 
             }
 
     }
 
     
 
     $mysql_access = mysql_connect("sqlhostname", "username", "password");
 
     mysql_select_db("databasename", $mysql_access);
 
     
 
     if(!$mysql_access) {
 
             echo "can't connect to db<br>\r\n";
 
     }

     else {
 
             $users = array();
 
             $users[0] = new user("nobody", 0, 0);
 
             $topsize = 10; // change this value to chage the number of users displayed ny the top list (i.e. 10 for top10, 5 for top5 etc)
 
             $top = array_fill(0, $topsize, array(0));
 
             $result = mysql_query("SELECT user_id FROM users");
 
            $count = mysql_num_rows($result);
 
             if($topsize > $count) $topsize = $count;
 
             $clistsize = $topsize;
 
             for($i=0; $i<$count; $i++) {
 
                     $row = mysql_fetch_assoc($result);
 
                     $userid = $row['user_id'];
 
                     $res = mysql_query("SELECT data_value FROM save_data WHERE user_id=$userid and data_name='Game_Actors/@data[1]/Game_Actor'");
 
                     $aux = mysql_fetch_assoc($res);
 
                     $stat = explode(",", trim($aux['data_value']," []"));
 
                     $users[$userid] = new user($stat[1], $stat[10], $stat[11]);
 
                     $aux = array();
 
                    $ctrl = true;
 
                     foreach($top as $ids) {
 
                             $add = false;
 
                             if($ctrl) {
 
                                     $id = $ids[0];
 
                                     $r1 = $users[$userid]->lv - $users[$id]->lv;
 
                                     $r2 = $users[$userid]->exp - $users[$id]->exp;
 
                                    if(($r1 > 0) || ($r1 == 0) && ($r2 > 0)) {
 
                                             $aux[] = array($userid);
 
                                             $ctrl = false;
 
                                     }
 
                                     elseif(($r1 == 0) && ($r2 == 0)) {
 
                                             $aux2 = $ids;
 
                                             $aux2[] = $userid;
 
                                             sort($aux2, SORT_NUMERIC);
 
                                             $aux[] = $aux2;
 
                                             $ctrl = false;
 
                                             $add = true;
 
                                     }
 
                             }
 
                             if (!$add) $aux[] = $ids;
 
                     }

                     $top = array_slice($aux, 0, $topsize);

             }
 
             echo "<table align='center' cellpadding=2 cellspacing=1 border=1 width='40%'>\r\n";

             echo "<colgroup span=4 align='center' width='15%'>\r\n";
 
             echo "<col>\r\n";
 
             echo "<col width='55%'>\r\n";

             echo "<col span=2>\r\n";

             echo "</colgroup>\r\n";

             echo "<tr><th colspan=4 bgcolor='#01A8FF'>Top$topsize players</th></tr>\r\n";
      echo "<tr align='center' bgcolor='01C0FF'><th>Position</th><th>Name</th><th>Level</th><th>Exp</th></tr>\r\n";

     

             foreach($top as $p1 => $ids) {

                     $i = 0;

                     $p = $p1 + 1;

                     $bgcolor = ($i % 2) ? "01C0FF" : "01A8FF";

                     foreach($ids as $k => $id) {

                             echo "<tr bgcolor='#$bgcolor'>";
 
                             $i++;

                             if($k==0) echo "<td rowspan=" . count($ids) . ">$p</td>";

                             echo "<td><a href='search.php?username=" . $users[$id]->name . "'>" . $users[$id]->name . " ($id)</a></td><td>" . $users[$id]->lv . "</td><td>" . $users[$id]->exp . "</td></tr>\r\n";

                     }
 
             }
 
             echo "</table>\r\n";
 
     }
   ?>
 
     </body>
 
     </html>





Instructions
you will need to make shur you have edited the script to read the data from your games mysql database



Compatibility
works with any ver of rmx-os this needs the rmx-os profiles script


Credits and Thanks

    drummer thanks for the help




Author's Notes
you might want to read up on basic php

That's it! N-Joy! =D
7
Programming / Scripting / Web / RMX os user profiles
April 06, 2010, 10:15:50 pm
RMX-OS profiles
Authors: edwardthefma drummer
Type: php script



Introduction
search able information about every user in your game



Features


  • user profiles




Screenshots
N/A
Demo
http://ssh.shellium.org/~edwardthefma/Eris%20online%20/search.php?username=edwardthefma



Script
Spoiler: ShowHide
<html>


<?php
$mysql_access = mysql_connect("hostname", "username", "password");
mysql_select_db("databasename", $mysql_access);

if(!$mysql_access) {
echo "can't connect to db<br>\r\n";
}
else {
$username = $_GET['username'];
$query = "SELECT user_id FROM users WHERE username='$username'";
$result = mysql_query($query);
if(!$result) {
echo "no username matched<br>\r\n";
}
elseif($username!=NULL) {
$row = mysql_fetch_assoc($result);
$userid = $row['user_id'];
$query = "SELECT data_value FROM save_data WHERE user_id=$userid and data_name='Game_Actors/@data[1]/Game_Actor";
$query1 = $query . "'";
$rezultat = mysql_query($query1);
if(!$rezultat) {
echo "This username ($username) does not exist.<br>\r\n";
echo "Please, try to search for another username.<br>\r\n";
}
else {
$query1 = $query . "/@skills'";
$rezultskills = mysql_query($query1);
if(!rezultskills) {
echo "no skill matched<br>";
}
$query1 = $query . "/@states'";
$rezultstates = mysql_query($query1);
if(!$rezultstates) {
echo "no state matched<br>";
}
$row = mysql_fetch_assoc($rezultat);
$stat = explode(",", trim($row['data_value']," []"));
$row = mysql_fetch_assoc($rezultskills);
$skills = explode(",", trim($row['data_value']," []"));
$row = mysql_fetch_assoc($rezultstates);
$states = explode(",", trim($row['data_value']," []"));

echo "<table align='center' cellpadding=2 cellspacing=1 border=1 width='60%'>\r\n";
echo "<colgroup span=3 align='center' width='50%'>\r\n";
echo "<tr><th colspan=2 bgcolor='#01A8FF'>Viewing User $username</th></tr>\r\n";
$arrcol1 = Array("id","username","sprite","hue","class","weapon","armor 1","armor 2","armor 3","armor 4","level","exp","skills","hp","sp","states","maxhp_pls","maxsp_plus","str_plus","dex_plus","agi_plus","int_plus");
$classes = Array("None","Fighter","Lancer","Warrior","Thief","Hunter","Gunner","Cleric","Mage");
$armors = Array("None","Bronze Shield","Iron Shield","Steel Shield","Mythirl Shield","Bronze Helm","Iron Helm","Steel Helm","Mythirl Helm","Cotton Hat","Felt Hat","Magic Hat","Saint Hat","Bronze Armor","Iron Armor","Steel Armor","Mythirl Armor","Bronze Plate","Iron Plate","Steel Plate","Mythirl Plate","Cotton Robe","Felt Robe","Magic Robe","Saint Robe","Ring of Strenght","Ring of Dextality","Ring of Agility","Ring of Intelligence","Rin of Fire","Ring of Ice","Ring of Thunder","Ring of Water");
$weapons = Array("None","Bronze Sword","Iron Sword","Steel Sword","Mythirl Sword","Bronze Spear","Iron Spear","Steel Spear","Mythril Spear","Bronze Axe","Iron Axe","Steel Axe","Mythirl Axe","Bronze Knife","Iron Knife","Steel Knife","Mythirl Knife","Bronze Bow","Iron Bow","Steel Bow","Mythirl Bow","Bronze Gun","Iron Gun","Steel Gun","Mythirl Gun","Bronze Mace","Iron Mace","Steel Mace","Mythirl Mace","Bronze Rod","Iron Rod","Steel Rod","Mythirl Rod" );
$statesi = Array("None","Knockout","Stun","Venom","Dazzle","Mute","Confuse","Sleep","Paralyse","Weaken","Clumsy","Delay","Feeble","Sharp","Barrier","Resist","Blink");
$skillsi = Array("None","Heal","Greater Heal","Mass Heal","Remedy","Greater Remedy","Raise","Fire","Greater Fire","Mass Fire","Ice","Greater Ice","Mass Ice","Thunder","Greater Thunder","Mass Thunder","Water","Greater Water","Mass Water","Earth","Greater Earth","Mass Earth","Wind","Greater Wind","Mass Wind","Light","Greater Light","Mass Light","Darkness","Greater Darkness","Mass Darkness","Burst","Radiate","Venom","Mass Venom","Dazzle","Mass Dazzle","Mute","Mass Mute","Confuse","Mass Confuse","Sleep","Mass Sleep","Paralyze","Mass Paralyze","Weaken","Mass Weaken","Clumsy","Mass Clumsy","Delay","Mass Delay","Feeble","Mass Feeble","Sharp","Barrier","Resist","Blink","Cross Cut","Feint Attack","Hurricane","Spiral Blade","Leg Sweep","Beast Slayer","Thunder Pierce","Screw Thrust","Power Break","Mind Break","Aqua Buster","Rolling Axe","Poison Edge","Eagle Claw","Illusion","Deadly Dance","Bird Killer","Mute Arrow","Paralyze Arrow","Sidewinder","Silver Bullet","Burinig Shot","Frost Shot","Crescent Force" );

$i = 0;
foreach($stat as $key => $value) {
if(in_array($key, array(0,1,3,12,15))) continue;
$i++;
$bgcolor = ($i % 2) ? "01C0FF" : "01A8FF";
$col1 = $arrcol1["$key"];
if ($i > 17) { break; }
switch($key) {
case 2: $col2 = "<table border=0 cellpadding=0 width=37><tr height=50><td background='sprites/" . trim($value, '"') . ".png'>&nbsp;</td></tr></table>"; break;
case 4: $col2 = $classes[$value]; break;
case 5: $col2 = $weapons[$value]; break;
case 6:
case 7:
case 8:
case 9: $col2 = $armors[$value]; break;
default: $col2 = $value;
}
echo "<tr bgcolor='#$bgcolor'><td>$col1</td><td>$col2</td></tr>\r\n";
}
if(!$skills[0]) $skills[0] = 0;
foreach($skills as $key => $value) {
$i++;
$bgcolor = ($i % 2) ? "01C0FF" : "01A8FF";
$aux = "<tr bgcolor='#$bgcolor'>";
if($key==0) $aux .= "<td rowspan=" . count($skills) . ">Skills</td>";
$aux .= "<td>$skillsi[$value]</td></tr>\r\n";
echo $aux;
}
if(!$states[0]) $states[0] = 0;
foreach($states as $key => $value) {
$i++;
$bgcolor = ($i % 2) ? "01C0FF" : "01A8FF";
$aux = "<tr bgcolor='#$bgcolor'>";
if($key==0) $aux .= "<td rowspan=" . count($states) . ">States</td>";
$aux .= "<td>$statesi[$value]</td></tr>\r\n";
echo $aux;
}
echo "</table>\r\n";
echo "<p align='center'>Search for another user</p>\r\n";
}
}
}
echo "<div align='center'>\r\n";
echo "<form method='GET' action='search.php'>\r\n";
echo "<input type='text' name='username' size=30>\r\n";
echo "<input type='submit' value='send'>\r\n";
echo "</form>\r\n";
echo "</div>\r\n";
?></div>
</body>
</html>




Instructions
on lines 50 to 54 are the items names weapon names class names and states names
you can change them like this but make shur you have the right name for the right ID
$classes = Array("None","Fighter","Lancer","Warrior","Thief","Hunter","Gunner","Cleric","Mage");
$classes = Array("None","1","2","3","4","5","6","7","8");
you might want to use a web sight to host your games mysql



Compatibility
works with any ver of rmx-os


Credits and Thanks

    drummer thanks for the help




Author's Notes
you might want to read up on basic php

That's it! N-Joy! =D
8
hello this thread is for a community maid mmorpg project for shellium.org
using rmx-os
ill add in mor information on the game later hear is a link to our game page
http://wiki.shellium.org/w/Mmorpg
10
RMX-OSeggdropbot
Authors: Pixelz
Type: eggdropbot script



Introduction
a irc bot for rmx-os  that displayes your user information



Features


  • a irc bot for rmx-os




Screenshots
N/A
Demo

N/A


Script

Make a new file with an .tcl extension in the scripts folder ofyoueggdrop bot and copy-paste this script into it.
Spoiler: ShowHide
# online-users.tcl --
#
#     This script fetches online users and displays them in +online-users channels.
#
# The author disclaims copyright to this source code.
#
# v1.0 by Pixelz (rutgren@gmail.com), January 15, 2010

package require eggdrop 1.6
package require Tcl 8.4
package require http

namespace eval ::online-users {
setudef flag {online-users}
variable url {http://ssh.shellium.org/~shmmo/online.php}
}

proc ::online-users::pub_online {nick uhost hand chan arg} {
variable url
if {![channel get $chan {online-users}]} { return }
if {[catch {set tok [::http::geturl $url]} error]} {
putlog "online-users.tcl geturl error: $error"
return
} elseif {[::http::status $tok] ne {ok}} {
putlog "online-users.tcl status error: [::http::error $tok]"
::http::cleanup $tok
return
} elseif {[::http::ncode $tok] != 200} {
putlog "online-users.tcl http error: [::http::code $tok]"
::http::cleanup $tok
return
} else {
set data [::http::data $tok]
::http::cleanup $tok
if {[regexp -nocase -- {Users currently online: (\d+) / (\d+)} $data - online total] != 1} { putlog "online-users.tcl error in regular expression"; return }
putserv "PRIVMSG $chan :Users currently online: $online / $total"
}
return
}

namespace eval ::online-users {
bind pub - "!online" ::online-users::pub_online
putlog "Loaded online-users.tcl v1.0 by Pixelz"
}






then make a .php file and put this script in it and upload it to the web
Spoiler: ShowHide
<html>
<body>
<?php readfile// (comment out)("/home/e/edwardthefma/RMX-OS Server/logs/users.log"); ?>

<?php $data = file('/home/e/edwardthefma/RMX-OS Server/logs/users.log');
echo end($data);
?>
</body>
</html>

then change ("/home/e/edwardthefma/RMX-OS Server/logs/users.log") to the location of your log file


Instructions
ok you will need to find variable url {http://ssh.shellium.org/~shmmo/online.php}
inthe script and chang it to the url of your php file
also you will need to /ctcp botname chat
then after you are logged on to your bot
.chanset #channelname +online-users
if you have never used a egg drop bot it would be smart
to read up first @ http://www.egghelp.org and http://wiki.shellium.org/w/Eggdrop


Compatibility
need rmx-os userlogger to work


Credits and Thanks

    Pixelz




Author's Notes
dont ask  about how to set up a egg bot
:)just read up on then and learn somthing

That's it! N-Joy! =D
11
Script Requests / globel RMX-OS weather
January 11, 2010, 06:00:07 pm
i think it would be cool to have weather like evry 20minust to a houer it randomy changes
the wether you could put your entier world thru a  blizzard XD
12
i need doors with lights an lit light poles  to use with my ates
i know i saw some a long time ago but i lost them  :(
13
Script Requests / click to walk hear
December 27, 2009, 03:34:53 pm
i know you have seen in alot of game you see where you can click
a spot on the screen and the character will walk to that position where the click was maid
14
ok i have bean working on making a irc bot that will display the top ten best players in the game
so i added a new colum names user lv to the user table
then i lernd the command i need to query the sql with to +1 to the table

UPDATE `users` SET user_lv = user_lv + 1 WHERE `username`='USERNAME'

now the only thing i have left to do is the script inside the game client
now from reading the chat commands in  the rmxos script
 
def command_sql_script(script)
     self.send("ASQ#{script}")
   end
this is the command to queary somthing to the sql but i cant figure out how i need to put it in
could some 1 help me or tell me if im going down the right path
or have i lost my way
15
RPG Maker Scripts / [xp]RMX-OS mysql.so file for linux
November 25, 2009, 12:36:13 pm
<RMX-OS mysql.so>
Authors: edwardthefma

Type: linux

Introduction
ok if you have ever tryed to run Rmx-os on a linux shell or a linux pc
you might have noticed that you get a  mysql.so error well hear is a file that will fix that


Features

  • the abillaty to use rmx-os with a deban linux shell with ruby1.9.1 and my sql




Screenshots
na


Demo
http://www.mediafire.com/?mn5mwm0wn4m


Script
NA it is in the demo



Instructions


to fix this is easy you replace the mysql.so with my preconfigerd
mysql.so file
now  this has bean tested with debian and it work i cant say it will work for all linux distros
you if it dosent work you will need to follow my foot steps you need to compile  a new so using this ruby guide
http://www.tmtm.org/en/mysql/ruby/ but insted of compileing it with ruby 1.9.1 you will compile it using 1.8.7 i think this is due to the fact that wen blizzard started rmx-os with ruby 1.8.7



Credits and Thanks

  • blizzard for helping me to find out how to fix the error
  • riotz for helping me with linux



Author's Notes
you might find that using a Linux shell would be easy to host your game but i will remind you that
some free shells might not like you running it cause it might go over their limited usage limit
16
RPG Maker Scripts / [c#tool] RMX-OS AUL
October 05, 2009, 04:19:06 pm
RMX-OS AUL
Authors: EDWARDTHEFMA&WATERRATJ
Version:1.0
Type:auto updater launcher
Key Term: c#tool 



Introduction
it downloads you game client and runs it
it reads the ver of your game by using a .txt file
written in c#


Features


  • it is ezy to use
  • makes it ezer to get new versions of you game out to the public



Screenshots

none needed


Demo
http://www.megaupload.com/?d=SR379DJ3


Script
it is all in the demo
Instructions
ok this  is made in c# so you need to download and install Microsoft's Visual C#
http://www.microsoft.com/express/vcsharp/Default.aspx
you can edit the code in
        types                                 members
  • Launcher.Designer.cs           InitializeComponent()
  • DWOLauncher.frmLauncher    frmLauncher()
    the file get the ver information in a txt file ver.txt
    so like ver1.0 would be 1000 and 1.1 would bee1100 and so on
    wen you are finshed editing it for your game
    click build then click build  solution
    and your auto updater will be in the
    rmx-osAUL\DWOLauncher\bin\Release directory
    dont for get to copy ICSharpCode.SharpZipLib.dll along with the .exe file


    Compatibility
    you need a file host that alows hot linking


    Credits and Thanks



    • WATERRATJ



    Author's Notes
    i like pie
17
RMXP Script Database / [XP] Town-scrolls for RMX-OS
September 16, 2009, 06:33:22 pm
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)
18
 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
19
ok i need a sound that sounds like a small fairy or mini girl screaming in pain

also i need a corps maid of this sprite

Spoiler: ShowHide

and a small animation of that sprit being torn in to peaces  blood and guts is a must :)
20
THIS WAS MADE BY edwardthefma!
fairy killer minigame
Version: 1.0
Type: Miscellaneous



Introduction
ok you have 3 minuets to kill 110 fariys


Features


  • the fun of killing fairys



Screenshots

None needed


Demo

Megaupload


Instructions
this needs blizz abs to work and it also needs to be used with a bow or a ranged weapon
and the range of the weapon needs to be at least 20 spaces wen copying rember to have you variables set correctly


Credits and Thanks
blizzerd and juan and namkcor

  • edwardthefma



Author's Notes
none yet

21
ok it is some custom script a friend of myn did for me but it has a bug he is having trouble fixing
the scrip allows you to post a random photo from a list but in trying to make it not do back to back photos
we encountered a problem whare it rembers the entier list of photos and refuses to show any more once it has bean displayed
for this script he moded Game_System and Scene_Map and added 2 other small  scripts
he used the call $photo = 1 to call for a random photo
GAME_system http://www.megaupload.com/?d=ZK65WR9I is a demo
Spoiler: ShowHide
Game_System
  #--------------------------------------------------------------------------
  # * Variables Globales
  #--------------------------------------------------------------------------
  attr_reader   :map_interpreter          # Int�rprete de eventos en mapa
  attr_reader   :battle_interpreter       # Int�rprete de eventos en batalla
  attr_accessor :timer                    # Temporizador
  attr_accessor :timer_working            # Temporizador funcionando
  attr_accessor :save_disabled            # Llamada a Guardar deshabilitado
  attr_accessor :menu_disabled            # Llamada a Men� deshabilitado
  attr_accessor :encounter_disabled       # Encuentro de enemigos deshabilitado
  attr_accessor :message_position         # Opci�n de Mensaje:Posici�n de la Ventana
  attr_accessor :message_frame            # Opci�n de Mensaje: Marco
  attr_accessor :save_count               # Contador de Partidas Guardadas
  attr_accessor :magic_number             # N�mero de Magia
  attr_accessor :unshowedphotos
  attr_reader   :photos
  #--------------------------------------------------------------------------
  # * Inicio de Objetos (Aqu� se agrega el valor inicial a cada variable)
  #--------------------------------------------------------------------------
  def initialize
    @map_interpreter = Interpreter.new(0, true)
    @battle_interpreter = Interpreter.new(0, false)
    @timer = 0
    @timer_working = false
    @save_disabled = false
    @menu_disabled = false
    @encounter_disabled = false
    @message_position = 2
    @message_frame = 0
    @save_count = 0
    @magic_number = 0
    @photos = ['1.jpg','2.jpg','4.jpg',5jpg','6.jpg','7.jpg','8.jpg']
    @unshowedphotos = @photos
  end
  #--------------------------------------------------------------------------
  # * Play Background Music
  #     bgm : background music to be played
  #--------------------------------------------------------------------------
  def bgm_play(bgm)
    @playing_bgm = bgm
    if bgm != nil and bgm.name != ""
      Audio.bgm_play("Audio/BGM/" + bgm.name, bgm.volume, bgm.pitch)
    else
      Audio.bgm_stop
    end
    Graphics.frame_reset
  end
  #--------------------------------------------------------------------------
  # * Stop Background Music
  #--------------------------------------------------------------------------
  def bgm_stop
    Audio.bgm_stop
  end
  #--------------------------------------------------------------------------
  # * Fade Out Background Music
  #     time : fade-out time (in seconds)
  #--------------------------------------------------------------------------
  def bgm_fade(time)
    @playing_bgm = nil
    Audio.bgm_fade(time * 1000)
  end
  #--------------------------------------------------------------------------
  # * Background Music Memory
  #--------------------------------------------------------------------------
  def bgm_memorize
    @memorized_bgm = @playing_bgm
  end
  #--------------------------------------------------------------------------
  # * Restore Background Music
  #--------------------------------------------------------------------------
  def bgm_restore
    bgm_play(@memorized_bgm)
  end
  #--------------------------------------------------------------------------
  # * Play Background Sound
  #     bgs : background sound to be played
  #--------------------------------------------------------------------------
  def bgs_play(bgs)
    @playing_bgs = bgs
    if bgs != nil and bgs.name != ""
      Audio.bgs_play("Audio/BGS/" + bgs.name, bgs.volume, bgs.pitch)
    else
      Audio.bgs_stop
    end
    Graphics.frame_reset
  end
  #--------------------------------------------------------------------------
  # * Fade Out Background Sound
  #     time : fade-out time (in seconds)
  #--------------------------------------------------------------------------
  def bgs_fade(time)
    @playing_bgs = nil
    Audio.bgs_fade(time * 1000)
  end
  #--------------------------------------------------------------------------
  # * Background Sound Memory
  #--------------------------------------------------------------------------
  def bgs_memorize
    @memorized_bgs = @playing_bgs
  end
  #--------------------------------------------------------------------------
  # * Restore Background Sound
  #--------------------------------------------------------------------------
  def bgs_restore
    bgs_play(@memorized_bgs)
  end
  #--------------------------------------------------------------------------
  # * Play Music Effect
  #     me : music effect to be played
  #--------------------------------------------------------------------------
  def me_play(me)
    if me != nil and me.name != ""
      Audio.me_play("Audio/ME/" + me.name, me.volume, me.pitch)
    else
      Audio.me_stop
    end
    Graphics.frame_reset
  end
  #--------------------------------------------------------------------------
  # * Play Sound Effect
  #     se : sound effect to be played
  #--------------------------------------------------------------------------
  def se_play(se)
    if se != nil and se.name != ""
      Audio.se_play("Audio/SE/" + se.name, se.volume, se.pitch)
    end
  end
  #--------------------------------------------------------------------------
  # * Stop Sound Effect
  #--------------------------------------------------------------------------
  def se_stop
    Audio.se_stop
  end
  #--------------------------------------------------------------------------
  # * Get Playing Background Music
  #--------------------------------------------------------------------------
  def playing_bgm
    return @playing_bgm
  end
  #--------------------------------------------------------------------------
  # * Get Playing Background Sound
  #--------------------------------------------------------------------------
  def playing_bgs
    return @playing_bgs
  end
  #--------------------------------------------------------------------------
  # * Get Windowskin File Name
  #--------------------------------------------------------------------------
  def windowskin_name
    if @windowskin_name == nil
      return $data_system.windowskin_name
    else
      return @windowskin_name
    end
  end
  #--------------------------------------------------------------------------
  # * Set Windowskin File Name
  #     windowskin_name : new windowskin file name
  #--------------------------------------------------------------------------
  def windowskin_name=(windowskin_name)
    @windowskin_name = windowskin_name
  end
  #--------------------------------------------------------------------------
  # * Get Battle Background Music
  #--------------------------------------------------------------------------
  def battle_bgm
    if @battle_bgm == nil
      return $data_system.battle_bgm
    else
      return @battle_bgm
    end
  end
  #--------------------------------------------------------------------------
  # * Set Battle Background Music
  #     battle_bgm : new battle background music
  #--------------------------------------------------------------------------
  def battle_bgm=(battle_bgm)
    @battle_bgm = battle_bgm
  end
  #--------------------------------------------------------------------------
  # * Get Background Music for Battle Ending
  #--------------------------------------------------------------------------
  def battle_end_me
    if @battle_end_me == nil
      return $data_system.battle_end_me
    else
      return @battle_end_me
    end
  end
  #--------------------------------------------------------------------------
  # * Set Background Music for Battle Ending
  #     battle_end_me : new battle ending background music
  #--------------------------------------------------------------------------
  def battle_end_me=(battle_end_me)
    @battle_end_me = battle_end_me
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # reduce timer by 1
    if @timer_working and @timer > 0
      @timer -= 1
    end
  end
end

Scene_Map
Spoiler: ShowHide
#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
#  This class performs map screen processing.
#==============================================================================

class Scene_Map
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # Make sprite set
    @spriteset = Spriteset_Map.new
    # Make message window
    @message_window = Window_Message.new
################################################################################1
    @window_photo = Window_Photo.new
    @window_photo.visible = false
    @window_photo.active = false
    $photo = 0
################################################################################2
    # Transition run
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of sprite set
    @spriteset.dispose
    # Dispose of message window
    @message_window.dispose
    # If switching to title screen
    if $scene.is_a?(Scene_Title)
      # Fade out screen
      Graphics.transition
      Graphics.freeze
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
   
  def update
################################################################################1
    if @window_photo.active == true
      if Input.trigger?(Input::C) or Input.trigger?(Input::B)
        $photo = 0
        @window_photo.visible = false
        @window_photo.active = false
      end
    else
################################################################################2
    # Loop
    loop do
      # Update map, interpreter, and player order
      # (this update order is important for when conditions are fulfilled
      # to run any event, and the player isn't provided the opportunity to
      # move in an instant)
      $game_map.update
      $game_system.map_interpreter.update
      $game_player.update
      # Update system (timer), screen
      $game_system.update
      $game_screen.update
      # Abort loop if player isn't place moving
      unless $game_temp.player_transferring
        break
      end
      # Run place move
      transfer_player
      # Abort loop if transition processing
      if $game_temp.transition_processing
        break
      end
    end
    # Update sprite set
    @spriteset.update
    # Update message window
    @message_window.update
    # If game over
    if $game_temp.gameover
      # Switch to game over screen
      $scene = Scene_Gameover.new
      return
    end
    # If returning to title screen
    if $game_temp.to_title
      # Change to title screen
      $scene = Scene_Title.new
      return
    end
    # If transition processing
    if $game_temp.transition_processing
      # Clear transition processing flag
      $game_temp.transition_processing = false
      # Execute transition
      if $game_temp.transition_name == ""
        Graphics.transition(20)
      else
        Graphics.transition(40, "Graphics/Transitions/" +
          $game_temp.transition_name)
      end
    end
    # If showing message window
    if $game_temp.message_window_showing
      return
    end
    # If encounter list isn't empty, and encounter count is 0
    if $game_player.encounter_count == 0 and $game_map.encounter_list != []
      # If event is running or encounter is not forbidden
      unless $game_system.map_interpreter.running? or
             $game_system.encounter_disabled
        # Confirm troop
        n = rand($game_map.encounter_list.size)
        troop_id = $game_map.encounter_list[n]
        # If troop is valid
        if $data_troops[troop_id] != nil
          # Set battle calling flag
          $game_temp.battle_calling = true
          $game_temp.battle_troop_id = troop_id
          $game_temp.battle_can_escape = true
          $game_temp.battle_can_lose = false
          $game_temp.battle_proc = nil
        end
      end
    end
    # If B button was pressed
    if Input.trigger?(Input::B)
      # If event is running, or menu is not forbidden
      unless $game_system.map_interpreter.running? or
             $game_system.menu_disabled
        # Set menu calling flag or beep flag
        $game_temp.menu_calling = true
        $game_temp.menu_beep = true
      end
    end
    # If debug mode is ON and F9 key was pressed
    if $DEBUG and Input.press?(Input::F9)
      # Set debug calling flag
      $game_temp.debug_calling = true
    end
################################################################################1
      if $photo == 0
       @window_photo.visible = false
       @window_photo.active = false
      elsif $photo == 1
       @window_photo.refresh
       $photo = 2
      elsif $photo == 2
       @window_photo.visible = true
       @window_photo.active = true
      end
################################################################################2
    # If player is not moving
    unless $game_player.moving?
      # Run calling of each screen
      if $game_temp.battle_calling
        call_battle
      elsif $game_temp.shop_calling
        call_shop
      elsif $game_temp.name_calling
        call_name
      elsif $game_temp.menu_calling
        call_menu
      elsif $game_temp.save_calling
        call_save
      elsif $game_temp.debug_calling
        call_debug
      end
    end
################################################################################1
end
################################################################################2
  end
  #--------------------------------------------------------------------------
  # * Battle Call
  #--------------------------------------------------------------------------
  def call_battle
    # Clear battle calling flag
    $game_temp.battle_calling = false
    # Clear menu calling flag
    $game_temp.menu_calling = false
    $game_temp.menu_beep = false
    # Make encounter count
    $game_player.make_encounter_count
    # Memorize map BGM and stop BGM
    $game_temp.map_bgm = $game_system.playing_bgm
    $game_system.bgm_stop
    # Play battle start SE
    $game_system.se_play($data_system.battle_start_se)
    # Play battle BGM
    $game_system.bgm_play($game_system.battle_bgm)
    # Straighten player position
    $game_player.straighten
    # Switch to battle screen
    $scene = Scene_Battle.new
  end
  #--------------------------------------------------------------------------
  # * Shop Call
  #--------------------------------------------------------------------------
  def call_shop
    # Clear shop call flag
    $game_temp.shop_calling = false
    # Straighten player position
    $game_player.straighten
    # Switch to shop screen
    $scene = Scene_Shop.new
  end
  #--------------------------------------------------------------------------
  # * Name Input Call
  #--------------------------------------------------------------------------
  def call_name
    # Clear name input call flag
    $game_temp.name_calling = false
    # Straighten player position
    $game_player.straighten
    # Switch to name input screen
    $scene = Scene_Name.new
  end
  #--------------------------------------------------------------------------
  # * Menu Call
  #--------------------------------------------------------------------------
  def call_menu
    # Clear menu call flag
    $game_temp.menu_calling = false
    # If menu beep flag is set
    if $game_temp.menu_beep
      # Play decision SE
      $game_system.se_play($data_system.decision_se)
      # Clear menu beep flag
      $game_temp.menu_beep = false
    end
    # Straighten player position
    $game_player.straighten
    # Switch to menu screen
    $scene = Scene_Menu.new
  end
  #--------------------------------------------------------------------------
  # * Save Call
  #--------------------------------------------------------------------------
  def call_save
    # Straighten player position
    $game_player.straighten
    # Switch to save screen
    $scene = Scene_Save.new
  end
  #--------------------------------------------------------------------------
  # * Debug Call
  #--------------------------------------------------------------------------
  def call_debug
    # Clear debug call flag
    $game_temp.debug_calling = false
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Straighten player position
    $game_player.straighten
    # Switch to debug screen
    $scene = Scene_Debug.new
  end
  #--------------------------------------------------------------------------
  # * Player Place Move
  #--------------------------------------------------------------------------
  def transfer_player
    # Clear player place move call flag
    $game_temp.player_transferring = false
    # If move destination is different than current map
    if $game_map.map_id != $game_temp.player_new_map_id
      # Set up a new map
      $game_map.setup($game_temp.player_new_map_id)
    end
    # Set up player position
    $game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
    # Set player direction
    case $game_temp.player_new_direction
    when 2  # down
      $game_player.turn_down
    when 4  # left
      $game_player.turn_left
    when 6  # right
      $game_player.turn_right
    when 8  # up
      $game_player.turn_up
    end
    # Straighten player position
    $game_player.straighten
    # Update map (run parallel process event)
    $game_map.update
    # Remake sprite set
    @spriteset.dispose
    @spriteset = Spriteset_Map.new
    # If processing transition
    if $game_temp.transition_processing
      # Clear transition processing flag
      $game_temp.transition_processing = false
      # Execute transition
      Graphics.transition(20)
    end
    # Run automatic change for BGM and BGS set on the map
    $game_map.autoplay
    # Frame reset
    Graphics.frame_reset
    # Update input information
    Input.update
  end
end


put custom 1 and 2 above seen_map
custom 1
Spoiler: ShowHide
class Window_Photo < Window_Base

  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 480)
    self.contents = Bitmap.new(width - 32, height - 32)
    @photos = ['1.jpg','2.jpg','4.jpg',5jpg','6.jpg','7.jpg','8']
    @usedphotos = [21]
   
    choose
    #@bitmap = @photos[rand(@photos.length)]
    #@usedphotos.push(@bitmap)
   
    @showedphoto = RPG::Cache.picture(@bitmap)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
   
     choose
     
    @showedphoto = RPG::Cache.picture(@bitmap)
    self.contents.blt(x, y, @showedphoto, Rect.new(0, 0, 640, 480), 255)
  end
 
  def choose
    @bitmap = @photos[rand(@photos.length)]
    @usedphotos.push(@bitmap)
  end
 
end

custom 2
Spoiler: ShowHide
class Window_Photo < Window_Base

  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 480)
    self.contents = Bitmap.new(width - 32, height - 32)
    #$photos = ['photo1', 'photo2', 'photo3', 'photo4']         
    #@unshowedphotos = $photos
    @bitmap = ""
    @showedphoto = RPG::Cache.picture(@bitmap)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    if  $photo == 1 or $photo == 2
     choose
   
    @showedphoto = RPG::Cache.picture(@bitmap)
    self.contents.blt(x, y, @showedphoto, Rect.new(0, 0, 640, 480), 255)
    end
  end
 
  def choose
    @bitmap = $game_system.unshowedphotos[rand($game_system.unshowedphotos.length) - 1]
    begin
  @delphoto = $game_system.unshowedphotos.rindex(@bitmap)
  $game_system.unshowedphotos.slice!(@delphoto)
  rescue
    print "No more pictures"
    @bitmap = ""
    end
  end
end


put custom 1 and 2 above seen_map