• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

help script ranks per vocation!

aioriusox

New Member
Joined
Apr 8, 2009
Messages
70
Reaction score
0
PHP:
!top kina 
!top pala

PHP:
local tops = { 
['None'] = {0}, 
['Sorcerer'] = {1}, 
['Druid'] = {2}, 
['Paladin'] = {3}, 
['Knight'] = {4}, 
['Master Sorcerer'] = {5}, 
['Elder Druid'] = {6}, 
['Royal Paladin'] = {7}, 
['Elite Knight'] = {8}, 
} 
function onSay(cid, words, param, channel) 
local msg = string.lower(param) 
if tops[msg] ~= nil then 
str = getVocationInfo((tops[msg][1])) 
else 
str = getVocationInfo((0)) 
end 
doShowTextDialog(cid,7873, str) 
return TRUE 
end

the script has to show the rank of knight level to see where the strongest knight, which druid, pala which wanted to know which function to use and how to use.
wanted help with this function.

I type the following happens! top knight and nothing appears in the window that opens to show rank. How can I do to fix this?
 
Back
Top