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 - Thimotty

Pages: 1 2 [3] 4 5
31
Scripting Chat / Re: Dealing with Damage gumps!!!
« on: October 03, 2009, 05:36:03 PM »
Heh we should stop writing and editing both in the same time :)
I agree mine is only good for personal use!

32
Scripting Chat / Re: Dealing with Damage gumps!!!
« on: October 03, 2009, 05:28:39 PM »
Maybe you are correct but I do riki often alone and it never fails.

Edit: Yes you are correct about scripts designed for public use. I have never deal with that side of the problem :)

33
Scripting Chat / Re: Dealing with Damage gumps!!!
« on: October 03, 2009, 05:18:35 PM »
@TM I'm sorry i have to say this but i have just checked your OpenContainer sub and ...... why are you alway try to kill a fly with a tank :)

Here is the solution:
(this is something i just wrote here, don't try to use it directly, it is only to show the idea)

Code: [Select]
findItem YFM_JNF_QNF_YNF_MNF_LNF_WNF_VNF_KNF_PNF G_2
if #FINDTYPE <> X
   {
   set #LOBJECTID #FINDID
   try_again:
   event macro 17 0
   wait 5
   str right #FINDID 4
   if #STRRES notin #CONTID
      goto try_again
   event ExMsg #charID 3 %color body ignored
   set %real_body_cont_ID #CONTID
   }

34
Scripting Chat / Re: Help with string functions
« on: October 02, 2009, 01:38:14 PM »
That's better :P
We won't ban you this time :P :P :P
<off>
Transmitter is easy. He did build a teleporter :)
</off>

35
Scripting Chat / Re: Help with string functions
« on: October 02, 2009, 11:51:41 AM »
haha TM you are trying to cheat :P

36
Scripting Chat / Re: Help with string functions
« on: October 02, 2009, 09:03:35 AM »
Yep i could lesser the lines with 2 and you with one :P
However my sub will replace any strings not only #spc

37
Scripting Chat / Re: Help with string functions
« on: October 01, 2009, 03:42:47 PM »
Gimme an idea of what this would be used for?
quick example:

Code: [Select]
finditem blablabla
event Property #FINDID
gosub strreplace #spc _ #PROPERTY
send HTTPPost mywebsite.com /test/test.php?var= , #RESULT

Code: [Select]
<?PHP
$handle = fopen("test.txt", "a");
foreach($_GET as $key=>$val) {
fwrite($handle, $val);
fwrite($handle, "\n");
}
fclose($handle);
?>

i've got tired checking 30+ vendors when i need anything so i'm working on a script to create a database with all items by vendor :)

not planning something so fancy like searchuo but who knows.... :P

38
Scripting Chat / Re: Help with string functions
« on: October 01, 2009, 02:15:57 PM »
Syntax:
gosub strreplace {search string} {replace string} {string}


Description
Replace all occurrences of the {search string} in the {string} with the {replace string}. The result is stored in the #RESULT variable


Example:
Code: [Select]
gosub strreplace #spc _ #PROPERTY
set %prop #RESULT


The SUB:
Code: [Select]
sub strreplace
while %1 in %3
  {
  STR LEN %1
  set %search_len #STRRES
  STR POS %3 %1
  set %position #STRRES
  STR DEL %3 %position %search_len
  set %3 #STRRES
  STR INS %3 %2 %position
  set %3 #STRRES
  }
return %3

P.S.
TM if you like it you can move it in the Script Snippets forum :P

39
Scripting Chat / Re: Help with string functions
« on: October 01, 2009, 01:49:50 PM »
wow too complex for me lol
here is my solution - just figured it :P

Code: [Select]
   set %prop #PROPERTY
   while #spc in %prop
      {
      STR POS %prop #spc
      set %position #STRRES
      STR DEL %prop %position 1
      set %prop #STRRES
      STR INS %prop _ %position
      set %prop #STRRES
     }

40
Scripting Chat / Help with string functions
« on: October 01, 2009, 01:35:13 PM »
How can i change all spaces in a string with "_"
Somithing like:
Code: [Select]
set %prop #PROPERTY
while #spc in %prop
   {
   some actions with srt command and prop var
   }
Can anyone help me?

41
General UO Chat / Re: Who else???
« on: September 29, 2009, 10:15:17 PM »
Ahhhh I'm enlightened now :)
but I meant my own (which of course is better :P )

42
New member introductions / Re: hi :)
« on: September 29, 2009, 10:06:46 PM »
Thanks :P

43
General UO Chat / Re: Who else???
« on: September 28, 2009, 10:45:06 PM »

Sir, you don't even know the half of it.....

Khameleon just loves to tease people who don't have access to the CLAw FULL version.  lol.
What is "CLAw"?

44
New member introductions / Re: hi :)
« on: September 25, 2009, 05:35:26 PM »
muahahahaha
It seems I'm the only one who don't want to be eaten by you :P

45
General UO Chat / Re: UO Auto Map
« on: September 25, 2009, 02:17:04 PM »
Here ya go:
http://aceputersstore.com/images/uoam.rar
However i can keep it there for only limited time so if someone can upload it to a more permanent location will be good.

Pages: 1 2 [3] 4 5