taultunleashed logoQuestion for vbscript programmer : EverQuest 2 Premium Discussions
newtopic  postreply
 [ 4 posts ] 
blue large dot

Question for vbscript programmer : EverQuest 2 Premium Discussions

Posted: November 13th, 2005, 10:33 am
 
slam666

Total Posts: 1184
Location: Quebec, Canada
Joined: April 21st, 2005, 7:30 am
slam666's Reps: 1
User avatar
Moderator
premium
Hi,

I have a quick question for vbscript programmers.

I want to check for a string within a string and I want to check for the expression 's

So if 's is include in the string

I am using this

i = InStr(CStr(s), CStr(token))

s is my string and token is the string i am trying to check if it is inside the string

so can i just do token="'s" or do I need to put a special char before the '

Ex: a Steelcrown harasser's Gouge hits YOU
I wanna see if there is a 's in the string



Thanks.


Reply with quote
Posted: November 14th, 2005, 6:57 pm
 
tault_discoduck
tault_discoduck's Reps:
User avatar
can't answer your question directly- but let me ask this: are you trying to determine if a mob is a pet?

I ask for 2 reasons: first, just checking for 's could produce some false positives. Second, I don't know if the current version of the service supports it, but there is a more elegant way to do this: mob data includes a bitflag indicating wether or not its a pet. If its not listed, you might pettition Wyv to add it.


Reply with quote
Posted: November 15th, 2005, 3:47 am
 
slam666

Total Posts: 1184
Location: Quebec, Canada
Joined: April 21st, 2005, 7:30 am
slam666's Reps: 1
User avatar
Moderator
premium
No I am trying to find if my healer bot is getting hit for real or if he just getting hit by area spells

And I found my answer

Thanks


Reply with quote
Posted: November 17th, 2005, 8:41 am
 
turnball
turnball's Reps:
User avatar
Yea you have it right. To check for an apostrophy within a string you can just use double quotes around the apostrophy. So if you had

s = <main string>
token = <the characters you are searching for>


So
if InStr(CStr(s), CStr(token)) then ' would return true and jump into the if block if it were present.

The value of tocken would be
token = "'s"

Hehe and disregard the private mesage I sent you. Its pay day and I figured I would just pay for the service ;) Now to get them to give me some extensions for free. I really wanted to get into the macros and bots to author some :D


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 170 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of EverQuest 2 Premium Discussions RSS Feed 
Sitemap of EverQuest 2 Premium Discussions Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?