BieHDC Posted November 14, 2013 Share Posted November 14, 2013 Can somebody explain me how to read this in a script? Because on some servers Action Script buggs around so i recreate the script, but i dont have the experience in xml If somebody can make a an example, this would be great > Visiblemarker="false" TeleportID="10" trigger="marker" AS-ID="1" ConditionalNOTHIT="" ConditionalHIT="" Markersize="5" Removeafteruse="false" posX="3584.3999023438" Markercolor="255,255,255,255" posZ="7.6999998092651" Delay="0" posY="-2349.6999511719">> Visiblemarker="false" TeleportID="10" trigger="marker" AS-ID="1" ConditionalNOTHIT="" ConditionalHIT="" Markersize="5" Removeafteruse="false" posX="3454.8999023438" Markercolor="255,255,255,255" posZ="22.10000038147" Delay="0" posY="-2225.3000488281">> Visiblemarker="false" trigger="marker" AS-ID="1" Velocity="0,0,1" ConditionalNOTHIT="" ConditionalHIT="" Markersize="2" Removeafteruse="false" posX="1098" Markercolor="255,255,255,255" posZ="12.5" Delay="0" posY="1447.8000488281">> Visiblemarker="false" trigger="world" AS-ID="1" Message="Text" ConditionalNOTHIT="" ConditionalHIT="" Markersize="5" Removeafteruse="false" posX="0" Markercolor="8,0,183,255" posZ="0" Delay="0" posY="0">>> Link to comment
BieHDC Posted November 15, 2013 Author Share Posted November 15, 2013 ok 1st thing BUT how to find TeleportIN and then how to read out the argumeants (posX...) Link to comment
Tete omar Posted November 15, 2013 Share Posted November 15, 2013 xmlNodeGetAttribute Link to comment
BieHDC Posted November 15, 2013 Author Share Posted November 15, 2013 Thank you Tete, this is the first helpful post. (this is not sarcasm) Link to comment
BieHDC Posted November 15, 2013 Author Share Posted November 15, 2013 ok readout is done, but i have a problem with a thing: Velocity="0,0,1" > returns as string but i need it in 3 values like vx,vy,vz = 0,0,1 what function i have to use for this? Link to comment
Tete omar Posted November 15, 2013 Share Posted November 15, 2013 E.g: string = "0,0,1" vx, vy, vz = unpack ( split ( string, "," ) ) vx, vy, vz = tonumber ( vx ), tonumber ( vy ), tonumber ( vz ) Link to comment
BieHDC Posted November 15, 2013 Author Share Posted November 15, 2013 hell yea thanks dude btw. are you xml pro? Link to comment
Tete omar Posted November 15, 2013 Share Posted November 15, 2013 I don't know , notice that i've made a little edit on the last post, so you can have vx, vy and vz numeric Link to comment
BieHDC Posted November 15, 2013 Author Share Posted November 15, 2013 tonumber wasnt needed this care because its done automatic (i think ;D ) can i pm you on xml based questions? because lua i can do most things and currently i wanna learn xml for a clan panel Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now