home *** CD-ROM | disk | FTP | other *** search
- global userid, userpw, userpm, userpg, jumpmode, jumpmoviename, gname, gten, gcoin, gcoint
-
- on startMovie
- if voidp(userid) then
- set userid to "guest"
- end if
- if voidp(userpg) then
- set userpg to 2000
- end if
- put 0 into field "point"
- put 0 into field "label"
- set gten to 0
- set gcoint to 0
- set gcoin to userpg
- set gname to userid
- initsw()
- end
-
- on stopMovie
- put " / 0 Pg" into field "NAME"
- put "guest" into field "userID"
- put 2000 into field "label"
- end
-
- on jumpnetmovie mname, jmode
- set jumpmoviename to mname
- set jumpmode to jmode
- if userid = "guest" then
- set jumpmode to 1
- end if
- repeat with s = 1 to 48
- set the puppet of sprite s to 0
- end repeat
- if jumpmode then
- gotonetmovie(mname)
- else
- setuserpm()
- end if
- go("exit")
- end
-
- on setuserpm
- set userpg to integer(gcoin)
- getnettext("http://202.224.191.2/cgi-bin/EcOpe.cgi?name=" & userid & "&password=" & userpw & "&amount=" & userpg)
- end
-
- on checknetresult
- if jumpmode then
- exit
- end if
- if netdone() then
- set nresult to nettextresult()
- if nresult starts "<" then
- alert(deletetag(nresult))
- go("loop")
- abort()
- else
- if nresult starts "E000" then
- if line 1 of nresult = "E0000" then
- set rtext to "Error : Server System Error"
- else
- if line 1 of nresult = "E0001" then
- set rtext to "Error : " & userid & "The name is not registered."
- else
- if line 1 of nresult = "E0002" then
- set rtext to "Error : The password is wrong."
- else
- if line 1 of nresult = "E0003" then
- set rtext to "Error : The parameter's form is wrong."
- else
- if line 1 of nresult = "E0003" then
- set rtext to "Error : Your balance is short - you cannot make a withdrawal."
- end if
- end if
- end if
- end if
- end if
- alert(rtext)
- go("loop")
- abort()
- else
- set jumpmode to 1
- gotonetmovie(jumpmoviename)
- end if
- end if
- end if
- end
-
- on deletetag ctext
- repeat while ctext contains "<"
- set fchar to offset("<", ctext)
- set echar to offset(">", ctext)
- delete char fchar to echar of ctext
- end repeat
- return ctext
- end
-