Remia RPG Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Remia RPG Forum

Home of Remia RPG
 
HomeHome  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Simple Cut Script

Go down 
AuthorMessage
Jo`OOC
Admin Staff
Admin Staff
Jo`OOC


Posts : 77
Join date : 2009-01-09

Simple Cut Script Empty
PostSubject: Simple Cut Script   Simple Cut Script Icon_minitimeSun Mar 15, 2009 8:43 pm

Code:
on 1:input:*: {
  if ($len($1-) > 420) {
    { %pos = 420
      :loop
      if %pos < 390 goto end |
      %chara = $mid($1-,%pos,1)
      if $asc(%chara) == 32 goto end |
      %pos = %pos - 1
      goto loop
      :end
    }
    %first = $left($1-,%pos - 1)
    %cuttext = $remove($1-,%first)
    %prefix = $left(%first,4)
    %mtch = { /me  }
    if (%prefix == %mtch) { %metxt = $remove(%first,%mtch) | /me %metxt } | /else { /say %first }
    /say %cuttext
    /halt
  }
}


Put that into the remotes section.
Back to top Go down
 
Simple Cut Script
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Remia RPG Forum :: General :: General Chat-
Jump to: