| Yoko http://forum.yoko.com.ua/ |
|
| little help with objects http://forum.yoko.com.ua/viewtopic.php?f=3&t=13012 |
Page 1 of 1 |
| Author: | Taya [ 2008-01-05 21:13:55 ] |
| Post subject: | little help with objects |
hi to all, i try to get the "name" of an object. Not the name of an character. this is easy with getname. but how can i get something like: "1000 Eichenstämme" i tried: Code: sub testen() but this won't work. please is there anybody who can help me? thanks taya |
|
| Author: | Grin [ 2008-01-05 21:19:19 ] |
| Post subject: | |
Code: sub testen() |
|
| Author: | Taya [ 2008-01-06 14:33:25 ] |
| Post subject: | |
thanks. but unfortunately is says only "60000" instead of "60000 Eichenhoelzer". if i use this with a char then is says something like "0 Hontar Hugmool". thus, again my question: how can i get the "name" of an object? or should i say description or property? the reason is that i want to chance my lootscript. some object on our shard are named like "[magic] garment". and i will loot all this "[magic]" items too. so i will insert something like Code: if "[magic]" in getproperty(finditem) then thanks taya PS: sorry i'm more familiar with easyUO but for lootscripts i think injection is the much better solution. in easyUO it's the command "event property #findid" |
|
| Author: | Grin [ 2008-01-06 15:45:18 ] |
| Post subject: | |
Code: sub testen() |
|
| Author: | Taya [ 2008-01-06 17:08:11 ] |
| Post subject: | |
super! thanks! aber i chanced the line if InStr(uo.getname('finditem'), "[mag]") > 0 then to ">= 0" it works perfekt! greats taya |
|
| Author: | Grin [ 2008-01-06 18:03:29 ] |
| Post subject: | |
| Author: | kobol [ 2014-03-17 21:07:57 ] |
| Post subject: | Re: little help with objects |
Нужна проверка на длину подстроки, иначе может не работать. Code: sub InStr(Source, subStr) |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|