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

Pages: [1]
1
Scripting Chat / Power Scroll scan script
« on: January 22, 2009, 05:28:09 AM »
Hi,

I want to make a script that looks at all powerscrolls in a bag, I set all prices for what there worth within the script. And the script will total the amounts and display Total.

Here is some code, its just test to show, if this would be the best way to go about it. I know its not proper, its just showing you the basic flow.

Code: [Select]
finditem XXXX
if #property = 120 Swordsmanship
 {
  set amount + 0.5
  some ignore code
  return
 }
 if #property = 120 Macing
 {
  set %amount + 1
  some ignore code
  return
 }
 if #property = 120 Magery
 {
  set %amount + 12
  some ignore code
  return
 }
 if #property = 120 Ninjitsu
 {
  set %amount + 1
  some ignore code
  return
 }
 if #property = 120 Healing
 {
  set %amount + 0.2
  some ignore code
  return
 }
 
 Totals all the amounts and Displays

So like this id need to do that to every 120 powerscroll/stat scroll and a couple 15's Dont care rest.

Anyway any thoughts would be good. Thanks!

2
Scripting Chat / Journal Scanner
« on: January 22, 2009, 12:54:27 AM »
Hey Trail

Im using your Journal scanner, I am wondering if its possible to ignore things in journal. I will paste basically what im doing, its probably basic i know, but gets job done.
Code: [Select]
gosub TM_AdvJournalSync container 100

mainloop:
gosub scan
goto mainloop


sub scan
gosub TM_AdvJournalScan container none tosh toshiyuki you_there you_are_invited powerscrolls power scrolls
IF #RESULT = #TRUE
 {
  sound ringtone.wav
 }
 gosub TM_AdvJournalSync container
 return

What Im wanting to do, because I want to have a msg saying something every 10minutes, I dont want the alarm to go off when I say something can I somehow ignore "Toshiyuki:"

Thanks for any input!

Pages: [1]