tiles test :)

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

tiles test :)

Post by Yoko »

*warning this script is not working in your version of injection*

Code: Select all

sub draw()
var x,y,s
uo.textclose()
uo.textclear()
for y=474 to 498
s=""
for x=2555 to 2580
if uo.privategettile(x,y,-1,1330,1360) then
if uo.privategettile(x,y)>2 then
 s=s+"+"
else
 s=s+"#"
end if
else
 s=s+"_"
end if
next
uo.textprint(s)
next
uo.textopen()
end sub


text output

Code: Select all

_____________#########____
____________#########+#___
___________#############__
__________###############_
__________###+############
__________############+###
_________#################
________##################
_______###################
_______###+###+###########
_______##############+###_
______##################__
_____##################___
____##############+_______
___###############________
___##############_________
___#########______________
___########_______________
___########_______________
__########________________
_########_________________
#+######__________________
#######___________________
#######___________________
#######___________________

(minoc mine)
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

Неужели ты решил в общедоступной версии разблокировать команды private*? :lol:
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

несколько человек меня спрашивали что оно из себя представляет
punkesito
Posts: 46
Joined: 2004-10-16 12:30:54
Location: Argentina
Contact:

Post by punkesito »

don't work for runuo?
my output:

Code: Select all

##########################
#####################+####
##########################
##########################
#############+############
######################+###
##########################
##########################
##########################
##########+###+###########
#####################+####
##########################
##########################
##################+#######
##########################
##########################
##########################
##########################
##########################
##########################
##########################
#+########################
##########################
##########################
##########################
Boydon
Posts: 56
Joined: 2004-06-16 00:44:18

Post by Boydon »

punkesito wrote:don't work for runuo?


Yoko wrote:*warning this script is not working in your version of injection*
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

Yoko wrote:несколько человек меня спрашивали что оно из себя представляет


Ты бы сделал прилепленный топик типа Update, где бы подробно описал "прелести" special edition... ИМХО.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

типа мне нечего больше делать
Artie
Posts: 8
Joined: 2004-07-18 04:07:38
Contact:

Re: tiles test :)

Post by Artie »

Yoko wrote:*warning this script is not working in your version of injection*

Code: Select all

sub draw()
var x,y,s
uo.textclose()
uo.textclear()
for y=474 to 498
s=""
for x=2555 to 2580
if uo.privategettile(x,y,-1,1330,1360) then
if uo.privategettile(x,y)>2 then
 s=s+"+"
else
 s=s+"#"
end if
else
 s=s+"_"
end if
next
uo.textprint(s)
next
uo.textopen()
end sub


text output

Code: Select all

_____________#########____
____________#########+#___
___________#############__
__________###############_
__________###+############
__________############+###
_________#################
________##################
_______###################
_______###+###+###########
_______##############+###_
______##################__
_____##################___
____##############+_______
___###############________
___##############_________
___#########______________
___########_______________
___########_______________
__########________________
_########_________________
#+######__________________
#######___________________
#######___________________
#######___________________

(minoc mine)


Вот это шедевр....Йоко я хетел бы стать таким как ты :)
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Re: tiles test :)

Post by Edred »

Artie wrote:Вот это шедевр....Йоко я хетел бы стать таким как ты :)


Дык легко же. Идешь на www.sourceforge.net, берешь исходники старого инжекта (с открытым кодом) и путем их доработки делаешь аналогичный проект. Или еще круче. Во много раз. Все в твоих руках.
Post Reply