This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

XML parse

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
m
m_key
Voice
Posts: 1
Joined: Fri Nov 10, 2006 8:58 am

XML parse

Post by m_key »

Please help me to create script, which parses info from url www.somegame.com/cgi-bin/user.pl?SomePlayer

Code: Select all

- <USER login="SomePlayer" online="1" level="4" str="12" dex="10" int="8" pow="12" acc="1" man="1" HP="28" psy="0" maxHP="80" maxPsy="52" name="" regday="07.11.2006" ne=",,,,," s1="" s2="">
  <O name="b2-k6" txt="Butterfly knife M1" slot="G" type="1.13" /> 
  </USER>
I need for this output by "!info SomePlayer" command:

Name: SomePlayer Online: yes level: 4 str: 12 dex: 10 int: 8 pow: 12 acc: 1 man: 1 HP: 28 psy: 0 maxHP: 80 maxPsy: 52
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Is the url above valid? It says:
Sorry, this page no longer exists. To visit the homepage for this domain, please click here.

It looks like a "parked" domain, not a real site.

Making the requested script wouldn't be that difficult, but give me a valid url.
Post Reply