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.

Messages - ShadowIce

1
for god sake, it IS presentable! O_O
3
Hi all, I started work on an admin-only levelup command, to levelup whatever player the admin chooses, with a slash command.


I made some changes to the client's Ruby script as well as some changes to a few of the server files.

Client Ruby Files:


I added the following command module command(s) (levelup) to the (RMX-OS) Script:
 COMMANDS[GROUP_ADMIN] = ['admin', 'levelup']


In the "Descriptions" part of the module, under "# Admin Commands", I added the following command(s) to the (RMX-OS) Script:
DESCRIPTIONS['levelup']   = 'Levels up a player by X levels'


I added the following command(s) to the parameters module to the (RMX-OS) Script:
PARAMETERS['levelup']   = 'USERNAME LEVEL'


In the definition "check_admin_commands(message)", I added the "when" command(s):
when /\A\/levelup (\S+) (\S+)\Z/ # levelup a player
       command_user_levelup($1, $2)
       return true


I added the following def command(s) to the (RMX-OS) Script:
    #--------------------------------------------------------------------------
   # Executes chat command for usergroup change.
   #  username - username of the player
   #  level    - new user level
   #--------------------------------------------------------------------------
   
   def command_user_levelup(username, level)
     self.send("LVL#[username]\lu#[level]")
   end



Server Ruby Files:
I modified the following files:

Client.rb
Action_Handler3.rb


Inside Action_Handler3.rb, I added the "def":
"try_user_levelup(username, level)"


(The SQL command for try_user_levelup(username, level), is:
check = RMXOS.server.sql.query("SELECT username, level FROM users WHERE username = '#{RMXOS.fix_string(username)}' AND level = '#{RMXOS.fix_string(level)}'")



Inside Client.rb, I added the "when" command:
"when /\LVL(.+)\t(.+)/ # change player level"


I also updated the SQL file:
I added:

" `level` int(10) NOT NULL default 1, ", 


to the CREATE TABLE `users` declaration


Here is the WHOLE project with modified files :

http://www.mediafire.com/?vllcbzpi3t49b1i


Thanks for the help! :)
4
Chat / Re: SOPA
January 19, 2012, 09:30:56 am
Not without america revolting against it, there's not
5
RMXP Script Database / Re: [XP] Dynamic Gardening
January 18, 2012, 08:35:36 pm
Can u make this script online so other players can see ur garden? :) Thanks! :D
6
Can someone please make me a pirate ship as big as the one in golden sun, and close to the one in golden sun?

Thanks alot! :)
8
Ok. Here's the glitch:

this is the transfer event i used:

Spoiler: ShowHide


this is the script glitch:

Spoiler: ShowHide


And this is the error line:

Spoiler: ShowHide


And FINALLY, here's the script:



thanks for the help! :)


Just a friendly reminder to please place images within spoilers.  - Zer0
9
@Blizz, do u know whats going on here?
10
Hi all. I, and I'm sure SO MANY others are having a problem with being able to shut off the weather system completely before transporting to another map..  :facepalm:

Can someone PLEASE help me fix this?

THANK you!
11
Sea of Code / Re: [JS] Need help with Javascript...
April 14, 2011, 12:44:55 pm
An example would be nice please and thank you :)
12
Sea of Code / [JS] Need help with Javascript...
April 14, 2011, 12:33:10 pm
how would I make it so that this code only replaces EACH = as I type them into the textarea with "\=" and NOT MORE THAN ONE \ ? new_text = new_text.replace("=","\\=");

it returns \\\=\\=\= instead of \=\=\=

Full code:

<script type="text/JavaScript">

function html2entities(sometext){
var re=/[(<>"'&]/g
arguments[i].value=sometext.replace(re, function(m){return replacechar(m)})
alert(arguments[i].value);
}

function replacechar(match){
if (match=="<")
 return "&lt;"
else if (match==">")
 return "&gt;"
else if (match=="\"")
 return "&quot;"
else if (match=="'")
 return "'"
else if (match=="&")
 return "&amp;"
}

//html2entities(document.forms.myform.textarea.value); //replace "<", ">", "&" and quotes in a form field with corresponding HTML entity instead

function generate(strValue)
{
  var newValue;

  newValue = replaceString(strValue, "<br>", "<br/>");
  newValue = replaceString(strValue, /\=/g, "\\=");
  document.forms[0].textarea.value = newValue;
}
function replaceString(inputStr,SearchPattern,ReplaceWith)
{
  return inputStr.replaceAll(SearchPattern,ReplaceWith);
}
</script>
<form name="form1" method="post" action="">
 <textarea name="textarea" onkeyUp="javascript:generate(document.forms.myform.textarea.value);"></textarea><br>
 <input type="button" name="Generate" value="Generate">
</form>
13
@Blizzard, I replaced it with the new script, and it's still activating with the H key and other keys....
14
I'm using ABS Controller 1.32 and am STILL having problems with the ABS automatically activating when my users are trying to register :)
15
Ok, how would I alter the scripts to do this?
16
RPG Maker Scripts / Problem displaying user's guild.
February 25, 2011, 06:19:50 am
Hi all.  What part of the script detects if a user is IN a guild? So like for example, I'm on The Order Of Four team, and my friend is on the AquaElite team. I want to be able to display my guild name under my name. and my friends guild under my friends name.

Because when I use $network.guildname, it makes everybody have the same guild.
17
Electronic and Computer Section / Re: Stupid Modem
February 23, 2011, 06:23:25 pm
The SERVER's host in cfg.ini should NOT be 127.0.0.1. It SHOULD be 192.168.x.y , x & y = ur internal IP. To find your internal IP, open the command prompt, then type in: ipconfig

Then look for "Internal IP".

The code inside the script archive should be "w.x.y.z" or ur external IP which u can get at http://whatismyip.org/ :) Also, don't forget to port forward the port or ports you are using for your game! :)
18
RPG Maker Scripts / Pixel movement?
February 16, 2010, 11:29:31 am
Does anyone know where I can get a pixelmovement script that actually works WITH RMX-OS and doesnt have glitches like when facing down by the edge of a cliff, u can see part of the characters arm?
19
RMXP Script Database / Re: [XP] RMX-OS
February 07, 2010, 11:14:03 am
where is this gui u speak of?
20
RMXP Script Database / Re: [XP] RMX-OS
February 04, 2010, 05:27:10 pm
Internal IP didnt work man.

Any other ideas?