All pastes #348168 Raw Edit

Someone

public text v1 · immutable
·published 2007-02-09 23:44 UTC
rendered paste body
def giveReward(st,slovo) :
    delka = len(slovo)
    if st.getRandom(99)<=49:
        st.giveItems(MEDAL,(delka*2))
    else :
        if delka>= 8:
            st.giveItems(L2DayScroll[st.getRandom(len(L2DayScroll))],1)
        st.giveItems(L2DayScroll[st.getRandom(len(L2DayScroll))],1)
    if st.getInt(slovo)==0:
        st.set(slovo,CISLA[1])
    lze = "T"
    for slovicko in SLOVA:
        if st.getInt(slovicko[0]) == 0 :
            lze = "F"
            break
    if lze == "T" and st.getInt("slovnik") == 0 :
        st.set("slovnik","1")
        st.giveItems(ODMENA_ID,ODMENA_POCET)
    return
 
#Mobs - all L2Monster